diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-08 14:31:55 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-09 09:22:13 +0200 |
commit | 3310d58a60a55c3ad71a775b5033c519906214a5 (patch) | |
tree | 9f4512588a7d6232bb6989223cbe3847e0479090 /common | |
parent | e53e7218ad003c0fb48a02ce860c49e4220845d8 (diff) | |
download | barebox-3310d58a60a55c3ad71a775b5033c519906214a5.tar.gz barebox-3310d58a60a55c3ad71a775b5033c519906214a5.tar.xz |
console: When switching baudrate print console name
Since there may be multiple consoles print the name of the console
whose baudrate shall be switched.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/console.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/console.c b/common/console.c index 7e3be8cad8..0a6fc3e9bf 100644 --- a/common/console.c +++ b/common/console.c @@ -154,8 +154,8 @@ int console_set_baudrate(struct console_device *cdev, unsigned baudrate) * The baudrate of an inactive device will be set at activation time. */ if (cdev->f_active) { - printf("## Switch baudrate to %d bps and press ENTER ...\n", - baudrate); + printf("## Switch baudrate on console %s to %d bps and press ENTER ...\n", + dev_name(&cdev->class_dev), baudrate); mdelay(50); } |