]> www.infradead.org Git - mtd-utils.git/commitdiff
mkfs.ubifs: fix compilation warning
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sat, 17 Jul 2010 06:45:03 +0000 (09:45 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sat, 17 Jul 2010 06:45:03 +0000 (09:45 +0300)
Fix the following warning:
mkfs.ubifs.c: In function ‘add_dent_node’:
mkfs.ubifs.c:1172: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 4 has type ‘ino_t’
mkfs.ubifs.c:1172: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type ‘ino_t’

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
mkfs.ubifs/mkfs.ubifs.c

index 95b20b07190274143e21fb655d3519cf379742d8..b3dd9bb6d8cf3e5ff41d13e2a72edbb9aee2bd7a 100644 (file)
@@ -1169,8 +1169,8 @@ static int add_dent_node(ino_t dir_inum, const char *name, ino_t inum,
        char *kname;
        int len;
 
-       dbg_msg(3, "%s ino %lu type %u dir ino %lu", name, inum,
-               (unsigned)type, dir_inum);
+       dbg_msg(3, "%s ino %lu type %u dir ino %lu", name, (unsigned long)inum,
+               (unsigned int)type, (unsigned long)dir_inum);
        memset(dent, 0, UBIFS_DENT_NODE_SZ);
 
        dname.name = (void *)name;