From: Simon Glass <sjg@chromium.org>
Date: Tue, 11 Jun 2013 18:14:37 +0000 (-0700)
Subject: bootstage: Correct printf types
X-Git-Tag: v2025.01-rc5-pxa1908~16129
X-Git-Url: http://git.dujemihanovic.xyz/html/static/gitweb.css?a=commitdiff_plain;h=5d3bd34545061ec665e64d7f5162fb5eef1e3001;p=u-boot.git

bootstage: Correct printf types

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>
---

diff --git a/common/bootstage.c b/common/bootstage.c
index c5c69961ac..f5027ef99a 100644
--- a/common/bootstage.c
+++ b/common/bootstage.c
@@ -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;
 	}