summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorFabio Porcedda <fabio.porcedda@gmail.com>2013-02-21 09:31:54 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-21 14:25:57 +0100
commit638f91bd166fe4aa8ee7c046c6102dab6d44ee0b (patch)
tree08915aa09c366a786f6a9d9fb1d50082173e6c0c /common
parent06bf4ad55b47d2bb561d2c0a967b436c855a21d4 (diff)
downloadbarebox-638f91bd166fe4aa8ee7c046c6102dab6d44ee0b.tar.gz
barebox-638f91bd166fe4aa8ee7c046c6102dab6d44ee0b.tar.xz
fix compiler warnings: use puts() instead of printf()
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 <fabio.porcedda@gmail.com> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Vicente <vicencb@gmail.com> 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 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--);
}