From: Lubomir Popov Date: Tue, 11 Nov 2014 10:25:42 +0000 (+0200) Subject: mmc: Cosmetic fix for nicer, aligned device list printout X-Git-Tag: v2015.01-rc4~26^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e75eaf100bdf01b94757e2b40365b46a7d380275;p=u-boot 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 --- diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 8436bc7f5d..9dc924c412 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1408,8 +1408,11 @@ void print_mmc_devices(char separator) printf("%s: %d", m->cfg->name, m->block_dev.dev); - if (entry->next != &mmc_devices) - printf("%c ", separator); + if (entry->next != &mmc_devices) { + printf("%c", separator); + if (separator != '\n') + puts (" "); + } } printf("\n");