From ba198492adc11a34b362f74d219a72dbe2bfd682 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 28 Jun 1998 20:48:03 +0000 Subject: [PATCH] Fixed printf format errors. --- sbin/fdisk/fdisk.c | 16 ++++++++-------- 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 1a0fc1cafc87..c8b1a8214e33 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 1a0fc1cafc87..c8b1a8214e33 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;