File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 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, ...)
648648 return 0 ;
649649 }
650650 }
651- vsnprintf (temp , len + 1 , format , arg );
652651#if !CONFIG_DISABLE_HAL_LOCKS
653652 if (s_uart_debug_nr != -1 && _uart_bus_array [s_uart_debug_nr ].lock ){
654653 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 );
659654 }
660- #else
655+ #endif
656+
657+ vsnprintf (temp , len + 1 , format , arg );
661658 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+ }
662664#endif
663665 va_end (arg );
664666 if (len >= sizeof (loc_buf )){
You can’t perform that action at this time.
0 commit comments