@@ -698,7 +698,7 @@ pub unsafe extern "C" fn task_create_pinned_to_core(
698698) -> i32 {
699699 trace ! ( "task_create_pinned_to_core task_func {:p} name {} stack_depth {} param {:p} prio {}, task_handle {:p} core_id {}" ,
700700 task_func,
701- StrBuf :: from( name) . as_str_ref( ) ,
701+ StrBuf :: from( name as * const u8 ) . as_str_ref( ) ,
702702 stack_depth,
703703 param,
704704 prio,
@@ -1090,7 +1090,7 @@ pub unsafe extern "C" fn phy_update_country_info(
10901090 country : * const crate :: binary:: c_types:: c_char ,
10911091) -> crate :: binary:: c_types:: c_int {
10921092 // not implemented in original code
1093- trace ! ( "phy_update_country_info {}" , * country as char ) ;
1093+ trace ! ( "phy_update_country_info {}" , * country as u8 as char ) ;
10941094 -1
10951095}
10961096
@@ -1516,7 +1516,7 @@ pub unsafe extern "C" fn log_write(
15161516 return ;
15171517
15181518 #[ cfg( target_arch = "riscv32" ) ]
1519- syslog ( _level, _format, _args) ;
1519+ syslog ( _level, _format as * const u8 , _args) ;
15201520}
15211521
15221522/****************************************************************************
@@ -1548,15 +1548,15 @@ pub unsafe extern "C" fn log_writev(
15481548 #[ cfg( target_arch = "xtensa" ) ]
15491549 #[ allow( unreachable_code) ]
15501550 {
1551- let s = StrBuf :: from ( _format) ;
1551+ let s = StrBuf :: from ( _format as * const u8 ) ;
15521552 log:: info!( "{}" , s. as_str_ref( ) ) ;
15531553 }
15541554
15551555 #[ cfg( target_arch = "riscv32" ) ]
15561556 #[ allow( unreachable_code) ]
15571557 {
15581558 let _args = core:: mem:: transmute ( _args) ;
1559- syslog ( _level, _format, _args) ;
1559+ syslog ( _level, _format as * const u8 , _args) ;
15601560 }
15611561}
15621562
0 commit comments