File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -648,17 +648,19 @@ int log_printf(const char *format, ...)
648
648
return 0 ;
649
649
}
650
650
}
651
- vsnprintf (temp , len + 1 , format , arg );
652
651
#if !CONFIG_DISABLE_HAL_LOCKS
653
652
if (s_uart_debug_nr != -1 && _uart_bus_array [s_uart_debug_nr ].lock ){
654
653
xSemaphoreTake (_uart_bus_array [s_uart_debug_nr ].lock , portMAX_DELAY );
655
- ets_printf ("%s" , temp );
656
- xSemaphoreGive (_uart_bus_array [s_uart_debug_nr ].lock );
657
- } else {
658
- ets_printf ("%s" , temp );
659
654
}
660
- #else
655
+ #endif
656
+
657
+ vsnprintf (temp , len + 1 , format , arg );
661
658
ets_printf ("%s" , temp );
659
+
660
+ #if !CONFIG_DISABLE_HAL_LOCKS
661
+ if (s_uart_debug_nr != -1 && _uart_bus_array [s_uart_debug_nr ].lock ){
662
+ xSemaphoreGive (_uart_bus_array [s_uart_debug_nr ].lock );
663
+ }
662
664
#endif
663
665
va_end (arg );
664
666
if (len >= sizeof (loc_buf )){
You can’t perform that action at this time.
0 commit comments