Makefile: Fix printing problem in size_check on overflow
[oweals/u-boot.git] / Makefile
index 58a5721b3d6a9096f55cdc1bb91831f304e03209..a96c6ce81e07c3f4cb357cf39242393bb1c5a411 100644 (file)
--- 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; \