summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-10-23 13:49:25 +0000
committerTom Rini <trini@ti.com>2012-10-29 14:21:20 -0700
commitb9dc49412d592a4ce8e5c3a297dc6eb0110646c6 (patch)
tree715cafa3034e255a6b2fed031ccd3a0c8b6829fa
parenta99c040c337753a7141263b36e91209f504191f1 (diff)
downloadtalos-obmc-uboot-b9dc49412d592a4ce8e5c3a297dc6eb0110646c6.tar.gz
talos-obmc-uboot-b9dc49412d592a4ce8e5c3a297dc6eb0110646c6.zip
ext4: Fix printf() format string error
Fix the following error in the ext4 command: cmd_ext4.c:110:3: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Werror=format] Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/cmd_ext4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_ext4.c b/common/cmd_ext4.c
index 237bc198ae..e193f29c47 100644
--- a/common/cmd_ext4.c
+++ b/common/cmd_ext4.c
@@ -101,7 +101,7 @@ int do_ext4_write(cmd_tbl_t *cmdtp, int flag, int argc,
/* mount the filesystem */
if (!ext4fs_mount(info.size)) {
- printf("Bad ext4 partition %s %d:%lu\n", argv[1], dev, part);
+ printf("Bad ext4 partition %s %d:%d\n", argv[1], dev, part);
goto fail;
}
OpenPOWER on IntegriCloud