AMD64 - Fix printf type
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 18 Aug 2009 00:11:47 +0000 (17:11 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 18 Aug 2009 00:11:47 +0000 (17:11 -0700)
sbin/fdisk/fdisk.c

index 1ac38c2..84196e6 100644 (file)
@@ -501,10 +501,10 @@ print_part(int i)
        part_mb *= secsize;
        part_mb /= (1024 * 1024);
        printf("sysid %d,(%s)\n", partp->dp_typ, get_type(partp->dp_typ));
-       printf("    start %lu, size %lu (%qd Meg), flag %x%s\n",
+       printf("    start %lu, size %lu (%lld Meg), flag %x%s\n",
                (u_long)partp->dp_start,
                (u_long)partp->dp_size,
-               part_mb,
+               (long long)part_mb,
                partp->dp_flag,
                partp->dp_flag == ACTIVE ? " (active)" : "");
        printf("\tbeg: cyl %d/ head %d/ sector %d;\n\tend: cyl %d/ head %d/ sector %d\n"