Browse Source

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>
pull/90836/head
Fabio Baltieri 1 week ago committed by Daniel DeGrasse
parent
commit
b15404f998
  1. 4
      drivers/serial/uart_bridge.c

4
drivers/serial/uart_bridge.c

@ -76,8 +76,8 @@ void uart_bridge_settings_update(const struct device *dev, @@ -76,8 +76,8 @@ void uart_bridge_settings_update(const struct device *dev,
return;
}
LOG_INF("uart settings: baudrate=%d parity=%d", cfg.baudrate,
cfg.parity);
LOG_INF("uart settings: baudrate=%d parity=%d dev=%s",
cfg.baudrate, cfg.parity, bridge_dev->name);
}
static uint8_t uart_bridge_get_idx(const struct device *dev,

Loading…
Cancel
Save