Since there may be multiple consoles print the name of the console
whose baudrate shall be switched.

Signed-off-by: Sascha Hauer <[email protected]>
---
 common/console.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/console.c b/common/console.c
index 957f539..8585cd6 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);
        }
 
-- 
2.1.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to