File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,14 @@ static void put(const struct log_backend *const backend,
3939 log_backend_std_put (& log_output_uart , flag , msg );
4040}
4141
42+ static void process (const struct log_backend * const backend ,
43+ union log_msg2_generic * msg )
44+ {
45+ uint32_t flags = log_backend_std_get_flags ();
46+
47+ log_output_msg2_process (& log_output_uart , & msg -> log , flags );
48+ }
49+
4250static void log_backend_uart_init (struct log_backend const * const backend )
4351{
4452 uart_dev = device_get_binding (CONFIG_UART_CONSOLE_ON_DEV_NAME );
@@ -80,10 +88,11 @@ static void sync_hexdump(const struct log_backend *const backend,
8088}
8189
8290const struct log_backend_api log_backend_uart_api = {
83- .put = IS_ENABLED (CONFIG_LOG_IMMEDIATE ) ? NULL : put ,
84- .put_sync_string = IS_ENABLED (CONFIG_LOG_IMMEDIATE ) ?
91+ .process = IS_ENABLED (CONFIG_LOG2 ) ? process : NULL ,
92+ .put = IS_ENABLED (CONFIG_LOG_MODE_DEFERRED ) ? put : NULL ,
93+ .put_sync_string = IS_ENABLED (CONFIG_LOG_MODE_IMMEDIATE ) ?
8594 sync_string : NULL ,
86- .put_sync_hexdump = IS_ENABLED (CONFIG_LOG_IMMEDIATE ) ?
95+ .put_sync_hexdump = IS_ENABLED (CONFIG_LOG_MODE_IMMEDIATE ) ?
8796 sync_hexdump : NULL ,
8897 .panic = panic ,
8998 .init = log_backend_uart_init ,
You can’t perform that action at this time.
0 commit comments