summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Porcedda <fabio.porcedda@gmail.com>2013-02-25 17:46:48 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-26 15:04:23 +0100
commit8e418dcc63539281e629f56163e315807427e469 (patch)
tree7ae15074c85e12e0b72684d735b8909bbc5e820d
parent8c82b1b2021591a8c3537958c7fa60816c584d8a (diff)
downloadbarebox-8e418dcc63539281e629f56163e315807427e469.tar.gz
menu: fix remove superfluous newline: change puts() -> printf("%s", )
Fix previous commit: 638f91b "fix compiler warnings: use puts() instead of printf()". Because puts() function add a newline, use instead printf("%s", ). Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Vicente Bergas <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/menu.c b/common/menu.c
index 30dced7..a672e59 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -274,7 +274,7 @@ int menu_show(struct menu *m)
printf("Auto Select in");
} else {
auto_display_len = strlen(m->auto_display);
- puts(m->auto_display);
+ printf("%s", m->auto_display);
}
printf(" %2d", countdown--);
}