summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-11-23 17:14:31 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-11-24 09:47:32 +0100
commitbf2253c2f4d00dde0c81604c17a5f0d508a37550 (patch)
tree2c785a41b4969a7a1ba1ea3ac67743dd3b04301e /common
parent1344966f25a03f0a0a092bbad50e1cce3a3cd310 (diff)
downloadbarebox-bf2253c2f4d00dde0c81604c17a5f0d508a37550.tar.gz
barebox-bf2253c2f4d00dde0c81604c17a5f0d508a37550.tar.xz
commands: boot: display each list entry in a separate line
The boot entry lines could get quite long for bootspec entries and then follow-up commit will make them even longer, thus split the lines into two lines and indent the second. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/boot.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/boot.c b/common/boot.c
index 586507e1ec..c6ec22873d 100644
--- a/common/boot.c
+++ b/common/boot.c
@@ -351,11 +351,10 @@ void bootsources_list(struct bootentries *bootentries)
{
struct bootentry *entry;
- printf("%-20s\n", "title");
- printf("%-20s\n", "------");
+ printf("title\n------\n");
bootentries_for_each_entry(bootentries, entry)
- printf("%-20s %s\n", entry->title, entry->description);
+ printf("%s\n\t%s\n", entry->title, entry->description);
}
BAREBOX_MAGICVAR(global.boot.default, "default boot order");