]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
bootstage: Correct printf types
authorSimon Glass <sjg@chromium.org>
Tue, 11 Jun 2013 18:14:37 +0000 (11:14 -0700)
committerTom Rini <trini@ti.com>
Wed, 26 Jun 2013 14:16:41 +0000 (10:16 -0400)
The unstash code is a bit loose with its printf() types, which gives
warnings on sandbox. Correct this.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/bootstage.c

index c5c69961acc91dd8590968598deff5ba69def306..f5027ef99acd48d2f6990767400a40a2ec427414 100644 (file)
@@ -445,9 +445,9 @@ int bootstage_unstash(void *base, int size)
        }
 
        if (hdr->count * sizeof(*rec) > hdr->size) {
-               debug("%s: Bootstage has %d records needing %d bytes, but "
+               debug("%s: Bootstage has %d records needing %lu bytes, but "
                        "only %d bytes is available\n", __func__, hdr->count,
-                     hdr->count * sizeof(*rec), hdr->size);
+                     (ulong)hdr->count * sizeof(*rec), hdr->size);
                return -1;
        }