From: Pierre-Alexandre Meyer Date: Thu, 6 Aug 2009 04:31:13 +0000 (-0700) Subject: hdt: Remove extra more_printf calls X-Git-Tag: syslinux-3.83-pre8~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ce3248c238ee5c74635ce3ded583adcd42d7a48;p=platform%2Fupstream%2Fsyslinux.git hdt: Remove extra more_printf calls Let's rather use string concatenation. Reported-by: Shao Miller Signed-off-by: Pierre-Alexandre Meyer --- diff --git a/com32/hdt/hdt-cli-disk.c b/com32/hdt/hdt-cli-disk.c index 07f7293..ffbec4f 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);