aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-11-29 21:40:29 +0100
committerErwan Velu <erwan.velu@free.fr>2009-12-04 10:11:16 +0100
commit374dd87ccc9ae82b806458ddb3fd082dfd21fab1 (patch)
tree555ef44347230d82ec093fe502546e985b4d3928 /com32
parent7a52bd8cb0fe13f4a3d57ebd36d82a143e54ef01 (diff)
downloadsyslinux.git-374dd87ccc9ae82b806458ddb3fd082dfd21fab1.tar.gz
syslinux.git-374dd87ccc9ae82b806458ddb3fd082dfd21fab1.tar.xz
syslinux.git-374dd87ccc9ae82b806458ddb3fd082dfd21fab1.zip
hdt: EDD uses hex numbers, not decimal
Impact: Fixing commit 4d2536e76d621bc7c5faa076a905051854f9c512 Commit 4d2536e76d621bc7c5faa076a905051854f9c512 was buggy as considering EDD as decimal and not hex.
Diffstat (limited to 'com32')
-rw-r--r--com32/hdt/hdt-cli-disk.c2
-rw-r--r--com32/hdt/hdt-menu-disk.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/com32/hdt/hdt-cli-disk.c b/com32/hdt/hdt-cli-disk.c
index a766ab83..c43b7ca7 100644
--- a/com32/hdt/hdt-cli-disk.c
+++ b/com32/hdt/hdt-cli-disk.c
@@ -214,7 +214,7 @@ void disks_summary(int argc __unused, char **argv __unused,
disk_size);
/* Do not print Host Bus & Interface if EDD isn't 3.0 or more */
- if (d->edd_version >= 30)
+ if (d->edd_version >= 0x30)
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));
diff --git a/com32/hdt/hdt-menu-disk.c b/com32/hdt/hdt-menu-disk.c
index 83eb379b..b0b4a5ac 100644
--- a/com32/hdt/hdt-menu-disk.c
+++ b/com32/hdt/hdt-menu-disk.c
@@ -182,7 +182,7 @@ static int compute_disk_module(struct s_my_menu *menu, int nb_sub_disk_menu,
menu[nb_sub_disk_menu].items_count++;
/* Do not print Host Bus & Interface if EDD isn't 3.0 or more */
- if (d[disk_number].edd_version >= 30) {
+ if (d[disk_number].edd_version >= 0x30) {
snprintf(buffer, sizeof buffer, "Host Bus/Interface: %s / %s",
remove_spaces((char *)d[disk_number].edd_params.host_bus_type),
d[disk_number].edd_params.interface_type);