]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
menu.c: use puts() instead of printf() where possible
authorWolfgang Denk <wd@denx.de>
Mon, 28 Nov 2011 19:19:41 +0000 (20:19 +0100)
committerWolfgang Denk <wd@denx.de>
Tue, 29 Nov 2011 14:43:42 +0000 (15:43 +0100)
commitd887ad54ca74063338bc3108beed0aa4f15d1f6b
treea2af862d92f40cf38ebebc319134fadf8de1701b
parent34b57d26f0e691f905e148538fbc00c4c24efcca
menu.c: use puts() instead of printf() where possible

common/menu.c used printf() in a number of places to print user
provided, constant strings (like the "title" string).  printf() is
dangerous here for example in case the user unwittingly embeds some
'%' caracters that printf() would interpret as formatting and then
pick up random arguments.  Use puts() instead.

We also omit the trailing ':' in the title line - if a user wants
this, he can provide it as part of the title string.

Signed-off-by: Wolfgang Denk <wd@denx.de>
common/menu.c