diff options
author | Bruce Evans <bde@FreeBSD.org> | 1998-06-28 20:48:03 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1998-06-28 20:48:03 +0000 |
commit | ba198492adc11a34b362f74d219a72dbe2bfd682 (patch) | |
tree | 59bed66edf394350fc95e642f9138754b4d41765 /sbin/fdisk/fdisk.c | |
parent | 318f0106d9c35fbe5c468d2f1ceec49db5f76c31 (diff) | |
download | src-ba198492adc11a34b362f74d219a72dbe2bfd682.tar.gz src-ba198492adc11a34b362f74d219a72dbe2bfd682.zip |
Fixed printf format errors.
Notes
Notes:
svn path=/head/; revision=37244
Diffstat (limited to 'sbin/fdisk/fdisk.c')
-rw-r--r-- | sbin/fdisk/fdisk.c | 16 |
1 files changed, 8 insertions, 8 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; |