Whamcloud - gitweb
we're reading unsigned long long, use %llu rather than %lld.
authorMatthias Andree <matthias.andree@gmx.de>
Wed, 12 Jan 2005 21:58:33 +0000 (22:58 +0100)
committerMatthias Andree <matthias.andree@gmx.de>
Wed, 12 Jan 2005 21:58:33 +0000 (22:58 +0100)
lib/blkid/devname.c

index ab1db6f..6e0e6d7 100644 (file)
@@ -300,7 +300,7 @@ int blkid_probe_all(blkid_cache cache)
                which ^= 1;
                ptname = ptnames[which];
 
-               if (sscanf(line, " %d %d %lld %128[^\n ]",
+               if (sscanf(line, " %d %d %llu %128[^\n ]",
                           &ma, &mi, &sz, ptname) != 4)
                        continue;
                devs[which] = makedev(ma, mi);