aboutsummaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-02-16 16:05:35 +0100
committerH. Peter Anvin <hpa@zytor.com>2009-02-25 20:58:41 -0800
commit11067c041338052cd4dde48f3b7b4e889c6c737d (patch)
treee786f8347267f927025f752952637bff07b8a1e0 /sample
parent61993e690618a50f758a89d4d0b84503a49ec830 (diff)
downloadsyslinux.git-11067c041338052cd4dde48f3b7b4e889c6c737d.tar.gz
syslinux.git-11067c041338052cd4dde48f3b7b4e889c6c737d.tar.xz
syslinux.git-11067c041338052cd4dde48f3b7b4e889c6c737d.zip
hdt: Fixing error message
Diffstat (limited to 'sample')
-rw-r--r--sample/hdt.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sample/hdt.c b/sample/hdt.c
index 7d7e3efc..6329fd04 100644
--- a/sample/hdt.c
+++ b/sample/hdt.c
@@ -1088,10 +1088,14 @@ void detect_hardware(s_dmi *dmi, s_cpu *cpu, struct pci_domain **pci_domain, str
detect_disks(disk_info);
printf("DMI: Detecting Table\n");
- if (detect_dmi(dmi) ==0 )
- is_dmi_valid=true;
-
- printf("DMI: Table found ! (version %d.%d)\n",dmi->dmitable.major_version,dmi->dmitable.minor_version);
+ if (detect_dmi(dmi) == -ENODMITABLE ) {
+ is_dmi_valid=false;
+ printf("DMI: ERROR ! Table not found ! \n");
+ printf("DMI: Many hardware components will not be detected ! \n");
+ } else {
+ is_dmi_valid=true;
+ printf("DMI: Table found ! (version %d.%d)\n",dmi->dmitable.major_version,dmi->dmitable.minor_version);
+ }
#ifdef WITH_PCI
printf("PCI: Detecting Devices\n");