From: Simon Glass Date: Tue, 23 Oct 2012 13:49:25 +0000 (+0000) Subject: ext4: Fix printf() format string error X-Git-Tag: submit/tizen/20160318.071304~422 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2103e94f9cea6f099482e051a94c60adcaf7b6d8;p=profile%2Fcommon%2Fplatform%2Fkernel%2Fu-boot-artik.git 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 --- diff --git a/common/cmd_ext4.c b/common/cmd_ext4.c index 237bc198a..e193f29c4 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; }