mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2] menu: fix remove superfluous newline: change puts() -> printf("%s", )
@ 2013-02-25 16:46 Fabio Porcedda
  2013-02-26 14:04 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Porcedda @ 2013-02-25 16:46 UTC (permalink / raw)
  To: barebox; +Cc: Vicente Bergas

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>
---

Notes:
    v2:
     - corrected two typos in the description

 common/menu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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--);
 	}
-- 
1.8.1.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-26 14:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-25 16:46 [PATCH v2] menu: fix remove superfluous newline: change puts() -> printf("%s", ) Fabio Porcedda
2013-02-26 14:04 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox