Fixed printf format errors.

This commit is contained in:
Bruce Evans 1998-06-28 20:48:03 +00:00
parent 318f0106d9
commit ba198492ad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37244
2 changed files with 16 additions and 16 deletions

View File

@ -449,9 +449,9 @@ print_part(int i)
part_mb *= secsize; part_mb *= secsize;
part_mb /= (1024 * 1024); part_mb /= (1024 * 1024);
printf("sysid %d,(%s)\n", partp->dp_typ, get_type(partp->dp_typ)); printf("sysid %d,(%s)\n", partp->dp_typ, get_type(partp->dp_typ));
printf(" start %ld, size %ld (%qd Meg), flag %x%s\n", printf(" start %lu, size %lu (%qd Meg), flag %x%s\n",
partp->dp_start, (u_long)partp->dp_start,
partp->dp_size, (u_long)partp->dp_size,
part_mb, part_mb,
partp->dp_flag, partp->dp_flag,
partp->dp_flag == ACTIVE ? " (active)" : ""); partp->dp_flag == ACTIVE ? " (active)" : "");
@ -1144,9 +1144,9 @@ process_partition(command)
break; break;
} }
fprintf(stderr, fprintf(stderr,
"%s: WARNING: adjusting start offset of partition '%d' from %d\n\ "%s: WARNING: adjusting start offset of partition '%d' from %lu\n\
to %d, to round to an head boundary.\n", to %lu, to round to an head boundary.\n",
name, partition, partp->dp_start, adj_size); name, partition, (u_long)partp->dp_start, adj_size);
partp->dp_start = adj_size; partp->dp_start = adj_size;
} }
@ -1160,9 +1160,9 @@ process_partition(command)
if (adj_size != partp->dp_size) if (adj_size != partp->dp_size)
{ {
fprintf(stderr, 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", 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) if (chunks > 0)
{ {
partp->dp_size = adj_size; partp->dp_size = adj_size;

View File

@ -449,9 +449,9 @@ print_part(int i)
part_mb *= secsize; part_mb *= secsize;
part_mb /= (1024 * 1024); part_mb /= (1024 * 1024);
printf("sysid %d,(%s)\n", partp->dp_typ, get_type(partp->dp_typ)); printf("sysid %d,(%s)\n", partp->dp_typ, get_type(partp->dp_typ));
printf(" start %ld, size %ld (%qd Meg), flag %x%s\n", printf(" start %lu, size %lu (%qd Meg), flag %x%s\n",
partp->dp_start, (u_long)partp->dp_start,
partp->dp_size, (u_long)partp->dp_size,
part_mb, part_mb,
partp->dp_flag, partp->dp_flag,
partp->dp_flag == ACTIVE ? " (active)" : ""); partp->dp_flag == ACTIVE ? " (active)" : "");
@ -1144,9 +1144,9 @@ process_partition(command)
break; break;
} }
fprintf(stderr, fprintf(stderr,
"%s: WARNING: adjusting start offset of partition '%d' from %d\n\ "%s: WARNING: adjusting start offset of partition '%d' from %lu\n\
to %d, to round to an head boundary.\n", to %lu, to round to an head boundary.\n",
name, partition, partp->dp_start, adj_size); name, partition, (u_long)partp->dp_start, adj_size);
partp->dp_start = adj_size; partp->dp_start = adj_size;
} }
@ -1160,9 +1160,9 @@ process_partition(command)
if (adj_size != partp->dp_size) if (adj_size != partp->dp_size)
{ {
fprintf(stderr, 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", 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) if (chunks > 0)
{ {
partp->dp_size = adj_size; partp->dp_size = adj_size;