diff options
author | bde <bde@FreeBSD.org> | 1998-06-28 20:48:03 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-06-28 20:48:03 +0000 |
commit | 31e25f7859a405b6f755c1ba1ccce919fcfd5a3f (patch) | |
tree | ef454186c91d9bdf72551e59fd7913f35f8d1029 /sbin | |
parent | 76120f12e571cecbe542cf6b4f6fd242b66c4a43 (diff) | |
download | FreeBSD-src-31e25f7859a405b6f755c1ba1ccce919fcfd5a3f.zip FreeBSD-src-31e25f7859a405b6f755c1ba1ccce919fcfd5a3f.tar.gz |
Fixed printf format errors.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/fdisk/fdisk.c | 16 | ||||
-rw-r--r-- | sbin/i386/fdisk/fdisk.c | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index 1a0fc1c..c8b1a82 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -449,9 +449,9 @@ 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 %ld, size %ld (%qd Meg), flag %x%s\n", - partp->dp_start, - partp->dp_size, + printf(" start %lu, size %lu (%qd Meg), flag %x%s\n", + (u_long)partp->dp_start, + (u_long)partp->dp_size, part_mb, partp->dp_flag, partp->dp_flag == ACTIVE ? " (active)" : ""); @@ -1144,9 +1144,9 @@ process_partition(command) break; } fprintf(stderr, - "%s: WARNING: adjusting start offset of partition '%d' from %d\n\ - to %d, to round to an head boundary.\n", - name, partition, partp->dp_start, adj_size); + "%s: WARNING: adjusting start offset of partition '%d' from %lu\n\ + to %lu, to round to an head boundary.\n", + name, partition, (u_long)partp->dp_start, adj_size); partp->dp_start = adj_size; } @@ -1160,9 +1160,9 @@ process_partition(command) if (adj_size != partp->dp_size) { fprintf(stderr, - "%s: WARNING: adjusting size of partition '%d' from %d to %d,\n\ + "%s: WARNING: adjusting size of partition '%d' from %lu to %lu,\n\ to round to a cylinder boundary.\n", - name, partition, partp->dp_size, adj_size); + name, partition, (u_long)partp->dp_size, adj_size); if (chunks > 0) { partp->dp_size = adj_size; diff --git a/sbin/i386/fdisk/fdisk.c b/sbin/i386/fdisk/fdisk.c index 1a0fc1c..c8b1a82 100644 --- a/sbin/i386/fdisk/fdisk.c +++ b/sbin/i386/fdisk/fdisk.c @@ -449,9 +449,9 @@ 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 %ld, size %ld (%qd Meg), flag %x%s\n", - partp->dp_start, - partp->dp_size, + printf(" start %lu, size %lu (%qd Meg), flag %x%s\n", + (u_long)partp->dp_start, + (u_long)partp->dp_size, part_mb, partp->dp_flag, partp->dp_flag == ACTIVE ? " (active)" : ""); @@ -1144,9 +1144,9 @@ process_partition(command) break; } fprintf(stderr, - "%s: WARNING: adjusting start offset of partition '%d' from %d\n\ - to %d, to round to an head boundary.\n", - name, partition, partp->dp_start, adj_size); + "%s: WARNING: adjusting start offset of partition '%d' from %lu\n\ + to %lu, to round to an head boundary.\n", + name, partition, (u_long)partp->dp_start, adj_size); partp->dp_start = adj_size; } @@ -1160,9 +1160,9 @@ process_partition(command) if (adj_size != partp->dp_size) { fprintf(stderr, - "%s: WARNING: adjusting size of partition '%d' from %d to %d,\n\ + "%s: WARNING: adjusting size of partition '%d' from %lu to %lu,\n\ to round to a cylinder boundary.\n", - name, partition, partp->dp_size, adj_size); + name, partition, (u_long)partp->dp_size, adj_size); if (chunks > 0) { partp->dp_size = adj_size; |