[U-Boot] [PATCH 1/9] common/menu.c: Fix build warning
Marek Vasut
marek.vasut at gmail.com
Sun Dec 4 12:27:26 CET 2011
> Fix:
> menu.c: In function 'menu_item_print':
> menu.c:91: warning: passing argument 1 of 'putc' makes integer from
> pointer without a cast
>
> Signed-off-by: Anatolij Gustschin <agust at denx.de>
> ---
> common/menu.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/common/menu.c b/common/menu.c
> index ca1baef..5e0817c 100644
> --- a/common/menu.c
> +++ b/common/menu.c
> @@ -88,7 +88,7 @@ static inline void *menu_item_print(struct menu *m,
> void *extra)
> {
> if (!m->item_data_print) {
> - putc(item->key);
> + puts(item->key);
> putc('\n');
> } else {
> m->item_data_print(item->data);
I see printf("%s\n", item->key); in there ... you might have some newer version
though. Please recheck and if that's the case:
Acked-by: Marek Vasut <marek.vasut at gmail.com>
More information about the U-Boot
mailing list