From 31e25f7859a405b6f755c1ba1ccce919fcfd5a3f Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 28 Jun 1998 20:48:03 +0000 Subject: Fixed printf format errors. --- sbin/fdisk/fdisk.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sbin/fdisk') 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; -- cgit v1.1