[U-Boot] [PATCH] tiny-printf: add static to locally used functions

Stefan Roese sr at denx.de
Mon Feb 13 08:28:49 UTC 2017


On 12.02.2017 10:08, Masahiro Yamada wrote:
> These two functions are only used in lib/tiny-printf.c .
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> ---
>
>  lib/tiny-printf.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c
> index dfa8432..6def8f9 100644
> --- a/lib/tiny-printf.c
> +++ b/lib/tiny-printf.c
> @@ -22,7 +22,7 @@ struct printf_info {
>  	void (*putc)(struct printf_info *info, char ch);
>  };
>
> -void putc_normal(struct printf_info *info, char ch)
> +static void putc_normal(struct printf_info *info, char ch)
>  {
>  	putc(ch);
>  }
> @@ -52,7 +52,7 @@ static void div_out(struct printf_info *info, unsigned long *num,
>  		out_dgt(info, dgt);
>  }
>
> -int _vprintf(struct printf_info *info, const char *fmt, va_list va)
> +static int _vprintf(struct printf_info *info, const char *fmt, va_list va)
>  {
>  	char ch;
>  	char *p;
>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan


More information about the U-Boot mailing list