mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-22 07:32:03 +00:00
mmc: Cosmetic fix for nicer, aligned device list printout
If print_mmc_devices() was called with a '\n' separator (as done for example by the "mmc list" command), it offset the 2-nd and all subsequent lines by one space. Fixing this. Signed-off-by: Lubomir Popov <l-popov@ti.com>
This commit is contained in:
parent
fc9b0b8043
commit
e75eaf100b
1 changed files with 5 additions and 2 deletions
|
@ -1408,8 +1408,11 @@ void print_mmc_devices(char separator)
|
||||||
|
|
||||||
printf("%s: %d", m->cfg->name, m->block_dev.dev);
|
printf("%s: %d", m->cfg->name, m->block_dev.dev);
|
||||||
|
|
||||||
if (entry->next != &mmc_devices)
|
if (entry->next != &mmc_devices) {
|
||||||
printf("%c ", separator);
|
printf("%c", separator);
|
||||||
|
if (separator != '\n')
|
||||||
|
puts (" ");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
Loading…
Reference in a new issue