Skip to content

Commit 774df60

Browse files
committed
Improve codestyle concistancy
1 parent e06474f commit 774df60

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

examples/raspberrypi/rp2xxx/src/allocator.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const baud_rate = 115200;
3939
pub const microzig_options = microzig.Options{
4040
.log_level = .debug,
4141
//.logFn = hal.uart.logFn,
42-
.logFn = hal.uart.logFnThreadsafe,
42+
.logFn = hal.uart.log_threadsafe,
4343
};
4444

4545
pub fn main() !void {

port/raspberrypi/rp2xxx/src/hal/uart.zig

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -490,18 +490,9 @@ pub fn log(
490490

491491
var log_mutex: microzig.hal.mutex.Mutex = .{};
492492

493-
<<<<<<< HEAD
494493
/// This log function wraps `log` in a semaphore so that calls to it from
495494
/// different cores or interrupts don't collide.
496495
pub fn log_threadsafe(
497-
=======
498-
/// This log function wraps logFn in a mutex so that calls to it from
499-
/// different cores or interrupts don't collide.
500-
///
501-
/// It is NOT safe to use in code that could be suspended on one core and
502-
/// resumed on another.
503-
pub fn logFnThreadsafe(
504-
>>>>>>> 320a0b8 (Significant improvement)
505496
comptime level: std.log.Level,
506497
comptime scope: @TypeOf(.EnumLiteral),
507498
comptime format: []const u8,

0 commit comments

Comments
 (0)