[U-Boot] [PATCH] Makefile: Fix printing problem in size_check on overflow
Simon Goldschmidt
simon.k.r.goldschmidt at gmail.com
Wed Oct 23 20:07:44 UTC 2019
Am 23.10.2019 um 21:39 schrieb Tom Rini:
> When we have an excess size growth, fix the "limit" printf call to pass
> in just the limit variable rather than the string bytes to the format
> character.
>
> Signed-off-by: Tom Rini <trini at konsulko.com>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>
> ---
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index cbacf1cfe2c9..f09023a3977f 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -346,7 +346,7 @@ define size_check
> limit=$$( printf "%d" $2 ); \
> if test $$actual -gt $$limit; then \
> echo "$1 exceeds file size limit:" >&2; \
> - echo " limit: $$(printf %#x bytes $$limit) bytes" >&2; \
> + echo " limit: $$(printf %#x $$limit) bytes" >&2; \
> echo " actual: $$(printf %#x $$actual) bytes" >&2; \
> echo " excess: $$(printf %#x $$((actual - limit))) bytes" >&2;\
> exit 1; \
>
More information about the U-Boot
mailing list