aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-05 21:31:13 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-05 21:31:13 -0700
commit2ce3248c238ee5c74635ce3ded583adcd42d7a48 (patch)
tree4c3f5c5e8faa95913e026b616cbaa104aa6f95be
parent9636a1bbb1c1394fc9fb7cf66d97ffe5f5f43ff3 (diff)
downloadlwip-2ce3248c238ee5c74635ce3ded583adcd42d7a48.tar.gz
lwip-2ce3248c238ee5c74635ce3ded583adcd42d7a48.tar.xz
lwip-2ce3248c238ee5c74635ce3ded583adcd42d7a48.zip
hdt: Remove extra more_printf calls
Let's rather use string concatenation. Reported-by: Shao Miller <Shao.Miller@yrdsb.edu.on.ca> Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
-rw-r--r--com32/hdt/hdt-cli-disk.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/com32/hdt/hdt-cli-disk.c b/com32/hdt/hdt-cli-disk.c
index 07f72930..ffbec4f1 100644
--- a/com32/hdt/hdt-cli-disk.c
+++ b/com32/hdt/hdt-cli-disk.c
@@ -133,18 +133,16 @@ void main_show_disk(int argc, char **argv,
else
memset(disk_size, 0, sizeof disk_size);
- more_printf("DISK 0x%X:\n", d->disk);
- more_printf(" C/H/S: %d cylinders, %d heads, %d sectors/track\n",
- d->legacy_max_cylinder + 1, d->legacy_max_head + 1,
- d->legacy_sectors_per_track);
- more_printf(" EDD: Version: %X\n", d->edd_version);
- more_printf(" Size: %s, %d bytes/sector, %d sectors/track\n",
- disk_size,
- (int) d->edd_params.bytes_per_sector,
- (int) d->edd_params.sectors_per_track);
- more_printf(" Host bus: %s, Interface type: %s\n\n",
- remove_spaces(d->edd_params.host_bus_type),
- remove_spaces(d->edd_params.interface_type));
+ more_printf("DISK 0x%X:\n"
+ " C/H/S: %d cylinders, %d heads, %d sectors/track\n"
+ " EDD: Version: %X\n"
+ " Size: %s, %d bytes/sector, %d sectors/track\n"
+ " Host bus: %s, Interface type: %s\n\n",
+ d->disk,
+ d->legacy_max_cylinder + 1, d->legacy_max_head + 1, d->legacy_sectors_per_track,
+ d->edd_version,
+ disk_size, (int) d->edd_params.bytes_per_sector, (int) d->edd_params.sectors_per_track,
+ remove_spaces(d->edd_params.host_bus_type), remove_spaces(d->edd_params.interface_type));
if (parse_partition_table(d, &show_partition_information) == -1) {
get_error(&error_buffer);