From 638f91bd166fe4aa8ee7c046c6102dab6d44ee0b Mon Sep 17 00:00:00 2001 From: Fabio Porcedda Date: Thu, 21 Feb 2013 09:31:54 +0100 Subject: fix compiler warnings: use puts() instead of printf() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use puts() because printf() isn't necessary, to fix the following compiler warnings: /barebox/common/menu.c: In function ‘menu_show’: /barebox/common/menu.c:277:4: warning: format not a string literal and no format arguments [-Wformat-security] /barebox/scripts/omap4_usbboot.c: In function ‘read_asic_id’: /barebox/scripts/omap4_usbboot.c:101:3: warning: format not a string literal and no format arguments [-Wformat-security] Signed-off-by: Fabio Porcedda Cc: Jean-Christophe PLAGNIOL-VILLARD Cc: Vicente Signed-off-by: Sascha Hauer --- common/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/menu.c') diff --git a/common/menu.c b/common/menu.c index ce93838f74..30dced75fb 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); - printf(m->auto_display); + puts(m->auto_display); } printf(" %2d", countdown--); } -- cgit v1.2.3