summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-06-17 07:32:59 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-19 22:42:34 +0200
commit1679063e40b42cb98d108854e12c06eed35015b1 (patch)
treee34b064f1c2099983253c5bc0ca6219a66c92336 /common
parent40c4e61554adc11822e68e0dc45f73e17a2a3094 (diff)
downloadbarebox-1679063e40b42cb98d108854e12c06eed35015b1.tar.gz
barebox-1679063e40b42cb98d108854e12c06eed35015b1.tar.xz
menu: Align entries
More than 9 menu entries in are single menu are not aligned anymore, like this: 8 entry8 9 entry9 10 entry10 Use %2d in the printf format specifier to align more than 9 entries. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/menu.c b/common/menu.c
index a672e59c0b..1f0ffec53b 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -175,7 +175,7 @@ static void print_menu_entry(struct menu *m, struct menu_entry *me,
puts(" ");
}
- printf(" %d: ", me->num);
+ printf(" %2d: ", me->num);
if (selected)
puts("\e[7m");