Patchwork [U-Boot,RFC,01/15] bootstage; Correct printf types

login
register
mail settings
Submitter Simon Glass
Date April 28, 2013, 2:17 a.m.
Message ID <1367115472-29531-2-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/240213/
State RFC
Headers show

Comments

Simon Glass - April 28, 2013, 2:17 a.m.
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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/common/bootstage.c b/common/bootstage.c
index a1e0939..d0ea632 100644
--- a/common/bootstage.c
+++ b/common/bootstage.c
@@ -401,9 +401,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;
 	}