Skip to content

Commit b15404f

Browse files
fabiobaltieridanieldegrasse
authored andcommitted
uart_bridge: log the device name on bitrate changes
Add a log for the device name on bitrate changes, without this it's very hard to understand what's going on in a system with multiple bridges. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
1 parent 6231972 commit b15404f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/serial/uart_bridge.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ void uart_bridge_settings_update(const struct device *dev,
7676
return;
7777
}
7878

79-
LOG_INF("uart settings: baudrate=%d parity=%d", cfg.baudrate,
80-
cfg.parity);
79+
LOG_INF("uart settings: baudrate=%d parity=%d dev=%s",
80+
cfg.baudrate, cfg.parity, bridge_dev->name);
8181
}
8282

8383
static uint8_t uart_bridge_get_idx(const struct device *dev,

0 commit comments

Comments
 (0)