fix warning coming from printing size_t with %u
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 6 Feb 2007 21:52:05 +0000 (21:52 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 6 Feb 2007 21:52:05 +0000 (21:52 -0000)
util-linux/mkfs_minix.c

index 59a9e1715c3dbb2983976230493b704e1859ac0f..e9ac9350d2b6e1d30772e980eb49798842c0f499 100644 (file)
@@ -537,7 +537,7 @@ static size_t do_check(char *buffer, size_t try, unsigned current_block)
        try = ((size_t)got) / BLOCK_SIZE;
 
        if (got & (BLOCK_SIZE - 1))
-               fprintf(stderr, "Short read at block %u\n", current_block + try);
+               fprintf(stderr, "Short read at block %u\n", (unsigned)(current_block + try));
        return try;
 }