]> Git Repo - J-u-boot.git/commitdiff
bootstage: Correct printf types
authorSimon Glass <[email protected]>
Tue, 11 Jun 2013 18:14:37 +0000 (11:14 -0700)
committerTom Rini <[email protected]>
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 <[email protected]>
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;
        }
 
This page took 0.037369 seconds and 4 git commands to generate.