aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-02-16 11:17:28 +0100
committerH. Peter Anvin <hpa@zytor.com>2009-02-25 20:58:41 -0800
commit5209894429f09bba73a6545d1d495fc9279a7147 (patch)
tree13eb0e201a60ec15620f704445665ae24b354ac0 /com32/lib
parentf981854af90da95c1223b3d14efe8fd1cd45ee28 (diff)
downloadsyslinux.git-5209894429f09bba73a6545d1d495fc9279a7147.tar.gz
syslinux.git-5209894429f09bba73a6545d1d495fc9279a7147.tar.xz
syslinux.git-5209894429f09bba73a6545d1d495fc9279a7147.zip
hdt: Returning ENOPCIIDS and ENOMODULESPCIMAP when pci.ids and modules.pcidmap files are missing
Diffstat (limited to 'com32/lib')
-rw-r--r--com32/lib/pci/scan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/com32/lib/pci/scan.c b/com32/lib/pci/scan.c
index c2c72146..c1345b8e 100644
--- a/com32/lib/pci/scan.c
+++ b/com32/lib/pci/scan.c
@@ -100,7 +100,7 @@ int get_module_name_from_pci_ids(struct pci_domain *domain)
/* Opening the modules.pcimap (of a linux kernel) from the boot device */
f=fopen("modules.pcimap", "r");
if (!f)
- return -1;
+ return -ENOMODULESPCIMAP;
strcpy(vendor_id,"0000");
strcpy(product_id,"0000");
@@ -182,7 +182,7 @@ int get_class_name_from_pci_ids(struct pci_domain *domain)
/* Opening the pci.ids from the boot device */
f = fopen("pci.ids","r");
if (!f)
- return -1;
+ return -ENOPCIIDS;
/* for each line we found in the pci.ids */
while ( fgets(line, sizeof line, f) ) {
@@ -276,7 +276,7 @@ int get_name_from_pci_ids(struct pci_domain *domain)
/* Opening the pci.ids from the boot device */
f = fopen("pci.ids","r");
if (!f)
- return -1;
+ return -ENOPCIIDS;
strlcpy(vendor_id,"0000",4);
strlcpy(product_id,"0000",4);