summaryrefslogtreecommitdiffstats
path: root/common/console.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-08 14:31:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-09 09:22:13 +0200
commit3310d58a60a55c3ad71a775b5033c519906214a5 (patch)
tree9f4512588a7d6232bb6989223cbe3847e0479090 /common/console.c
parente53e7218ad003c0fb48a02ce860c49e4220845d8 (diff)
downloadbarebox-3310d58a60a55c3ad71a775b5033c519906214a5.tar.gz
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/console.c')
-rw-r--r--common/console.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/console.c b/common/console.c
index 7e3be8c..0a6fc3e 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);
}