From: Simon Glass Date: Tue, 23 Oct 2012 16:49:25 -0700 Subject: [U-Boot] [PATCH] ext4: Fix printf() format string error Message-ID: <1351036165-31397-1-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- common/cmd_ext4.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/cmd_ext4.c b/common/cmd_ext4.c index ca46561..75bb8c1 100644 --- a/common/cmd_ext4.c +++ b/common/cmd_ext4.c @@ -107,7 +107,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; } -- 1.7.7.3