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>
This commit is contained in:
parent
8c82b1b202
commit
8e418dcc63
|
@ -274,7 +274,7 @@ int menu_show(struct menu *m)
|
||||||
printf("Auto Select in");
|
printf("Auto Select in");
|
||||||
} else {
|
} else {
|
||||||
auto_display_len = strlen(m->auto_display);
|
auto_display_len = strlen(m->auto_display);
|
||||||
puts(m->auto_display);
|
printf("%s", m->auto_display);
|
||||||
}
|
}
|
||||||
printf(" %2d", countdown--);
|
printf(" %2d", countdown--);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue