@@ -169,7 +169,7 @@ impl TaskState {
169
169
}
170
170
171
171
unsafe fn exit_and_dispatch < Traits : PortInstance > ( & self , state : & ' static State ) -> ! {
172
- log:: trace!( "exit_and_dispatch({:p}) enter" , self ) ;
172
+ log:: trace!( "exit_and_dispatch({self :p}) enter" ) ;
173
173
self . assert_current_thread ( ) ;
174
174
175
175
let mut lock = state. thread_group . get ( ) . unwrap ( ) . lock ( ) ;
@@ -196,7 +196,7 @@ impl TaskState {
196
196
// Invoke the dispatcher
197
197
unsafe { state. yield_cpu :: < Traits > ( ) } ;
198
198
199
- log:: trace!( "exit_and_dispatch({:p}) calling exit_thread" , self ) ;
199
+ log:: trace!( "exit_and_dispatch({self :p}) calling exit_thread" ) ;
200
200
unsafe { ums:: exit_thread ( ) } ;
201
201
}
202
202
}
@@ -260,7 +260,7 @@ impl State {
260
260
<Traits as PortToKernel >:: boot ( ) ;
261
261
}
262
262
} ) ;
263
- log:: trace!( "startup thread = {:?}" , thread_id ) ;
263
+ log:: trace!( "startup thread = {thread_id :?}" ) ;
264
264
lock. scheduler ( ) . task_thread = Some ( thread_id) ;
265
265
lock. scheduler ( ) . recycle_thread ( thread_id) ;
266
266
lock. preempt ( ) ;
@@ -346,7 +346,7 @@ impl State {
346
346
// there's no data race
347
347
let running_task = unsafe { * Traits :: state ( ) . running_task_ptr ( ) } ;
348
348
lock. scheduler ( ) . task_thread = if let Some ( task) = running_task {
349
- log:: trace!( "dispatching task {:p}" , task ) ;
349
+ log:: trace!( "dispatching task {task :p}" ) ;
350
350
351
351
let mut tsm = task. port_task_state . tsm . lock ( ) ;
352
352
@@ -357,7 +357,7 @@ impl State {
357
357
THREAD_ROLE . with ( |role| role. set ( ThreadRole :: Task ) ) ;
358
358
assert ! ( !self . is_cpu_lock_active:: <Traits >( ) ) ;
359
359
360
- log:: debug!( "task {:p} is now running" , task ) ;
360
+ log:: debug!( "task {task :p} is now running" ) ;
361
361
362
362
// Safety: The port can call this
363
363
unsafe {
@@ -373,7 +373,7 @@ impl State {
373
373
}
374
374
} ) ;
375
375
376
- log:: trace!( "spawned thread {:?} for the task {:p}" , thread , task ) ;
376
+ log:: trace!( "spawned thread {thread :?} for the task {task :p}" ) ;
377
377
378
378
* tsm = Tsm :: Running ( thread) ;
379
379
Some ( thread)
@@ -435,7 +435,7 @@ impl State {
435
435
& self ,
436
436
task : & ' static TaskCb < Traits > ,
437
437
) {
438
- log:: trace!( "initialize_task_state {:p}" , task ) ;
438
+ log:: trace!( "initialize_task_state {task :p}" ) ;
439
439
expect_worker_thread :: < Traits > ( ) ;
440
440
assert ! ( self . is_cpu_lock_active:: <Traits >( ) ) ;
441
441
@@ -495,7 +495,7 @@ impl State {
495
495
num : InterruptNum ,
496
496
priority : InterruptPriority ,
497
497
) -> Result < ( ) , SetInterruptLinePriorityError > {
498
- log:: trace!( "set_interrupt_line_priority{:?}" , ( num , priority) ) ;
498
+ log:: trace!( "set_interrupt_line_priority({num}, { priority})" ) ;
499
499
assert ! ( matches!(
500
500
expect_worker_thread:: <Traits >( ) ,
501
501
ThreadRole :: Boot | ThreadRole :: Task
@@ -518,7 +518,7 @@ impl State {
518
518
& ' static self ,
519
519
num : InterruptNum ,
520
520
) -> Result < ( ) , EnableInterruptLineError > {
521
- log:: trace!( "enable_interrupt_line{:?}" , ( num, ) ) ;
521
+ log:: trace!( "enable_interrupt_line({ num})" ) ;
522
522
expect_worker_thread :: < Traits > ( ) ;
523
523
524
524
let mut lock = self . thread_group . get ( ) . unwrap ( ) . lock ( ) ;
@@ -538,7 +538,7 @@ impl State {
538
538
& self ,
539
539
num : InterruptNum ,
540
540
) -> Result < ( ) , EnableInterruptLineError > {
541
- log:: trace!( "disable_interrupt_line{:?}" , ( num, ) ) ;
541
+ log:: trace!( "disable_interrupt_line({ num})" ) ;
542
542
expect_worker_thread :: < Traits > ( ) ;
543
543
544
544
( self . thread_group . get ( ) . unwrap ( ) . lock ( ) )
@@ -551,7 +551,7 @@ impl State {
551
551
& ' static self ,
552
552
num : InterruptNum ,
553
553
) -> Result < ( ) , PendInterruptLineError > {
554
- log:: trace!( "pend_interrupt_line{:?}" , ( num, ) ) ;
554
+ log:: trace!( "pend_interrupt_line({ num})" ) ;
555
555
expect_worker_thread :: < Traits > ( ) ;
556
556
557
557
let mut lock = self . thread_group . get ( ) . unwrap ( ) . lock ( ) ;
@@ -571,7 +571,7 @@ impl State {
571
571
& self ,
572
572
num : InterruptNum ,
573
573
) -> Result < ( ) , ClearInterruptLineError > {
574
- log:: trace!( "clear_interrupt_line{:?}" , ( num, ) ) ;
574
+ log:: trace!( "clear_interrupt_line({ num})" ) ;
575
575
expect_worker_thread :: < Traits > ( ) ;
576
576
577
577
( self . thread_group . get ( ) . unwrap ( ) . lock ( ) )
@@ -647,7 +647,7 @@ impl State {
647
647
648
648
pub fn pend_tick_after < Traits : PortInstance > ( & self , tick_count_delta : UTicks ) {
649
649
expect_worker_thread :: < Traits > ( ) ;
650
- log:: trace!( "pend_tick_after({:?})" , tick_count_delta ) ;
650
+ log:: trace!( "pend_tick_after({tick_count_delta :?})" ) ;
651
651
652
652
// Calculate when `timer_tick` should be called
653
653
let now = Instant :: now ( ) + Duration :: from_micros ( tick_count_delta. into ( ) ) ;
@@ -713,7 +713,7 @@ pub fn shutdown<Traits: PortInstance>() {
713
713
pub fn pend_interrupt_line < Traits : PortInstance > (
714
714
num : InterruptNum ,
715
715
) -> Result < ( ) , PendInterruptLineError > {
716
- log:: trace!( "external-pend_interrupt_line{:?}" , ( num, ) ) ;
716
+ log:: trace!( "external-pend_interrupt_line({ num})" ) ;
717
717
718
718
assert_eq ! (
719
719
THREAD_ROLE . with( |r| r. get( ) ) ,
0 commit comments