diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-17 07:32:59 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-19 22:42:34 +0200 |
commit | 1679063e40b42cb98d108854e12c06eed35015b1 (patch) | |
tree | e34b064f1c2099983253c5bc0ca6219a66c92336 | |
parent | 40c4e61554adc11822e68e0dc45f73e17a2a3094 (diff) | |
download | barebox-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>
-rw-r--r-- | common/menu.c | 2 |
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"); |