aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli-disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/hdt/hdt-cli-disk.c')
-rw-r--r--com32/hdt/hdt-cli-disk.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/com32/hdt/hdt-cli-disk.c b/com32/hdt/hdt-cli-disk.c
index cabee9de..a766ab83 100644
--- a/com32/hdt/hdt-cli-disk.c
+++ b/com32/hdt/hdt-cli-disk.c
@@ -212,9 +212,12 @@ void disks_summary(int argc __unused, char **argv __unused,
d->legacy_sectors_per_track);
more_printf(" EDD: Version: %X, size: %s\n", d->edd_version,
disk_size);
- more_printf(" Host bus: %s, Interface type: %s\n\n",
- remove_spaces((char *)d->edd_params.host_bus_type),
- remove_spaces((char *)d->edd_params.interface_type));
+
+ /* Do not print Host Bus & Interface if EDD isn't 3.0 or more */
+ if (d->edd_version >= 30)
+ more_printf(" Host bus: %s, Interface type: %s\n\n",
+ remove_spaces((char *)d->edd_params.host_bus_type),
+ remove_spaces((char *)d->edd_params.interface_type));
}
if (found == false)