diff options
author | Simon Glass <sjg@chromium.org> | 2013-06-11 11:14:37 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-06-26 10:16:41 -0400 |
commit | 5d3bd34545061ec665e64d7f5162fb5eef1e3001 (patch) | |
tree | 580609db8d18e27397ed9b3e6c27b92022af5d67 | |
parent | aec36cfdac34ddbf6542915005830536fb7e5fb7 (diff) | |
download | u-boot-imx-5d3bd34545061ec665e64d7f5162fb5eef1e3001.zip u-boot-imx-5d3bd34545061ec665e64d7f5162fb5eef1e3001.tar.gz u-boot-imx-5d3bd34545061ec665e64d7f5162fb5eef1e3001.tar.bz2 |
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>
-rw-r--r-- | common/bootstage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/bootstage.c b/common/bootstage.c index c5c6996..f5027ef 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; } |