diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-01-29 18:24:48 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-01-29 18:24:48 +0100 |
commit | 50cf738d694a95eede504470676534309e641727 (patch) | |
tree | 5ac4efbca56a918d0fab982821031ddbb3814c43 /sys/src/9/pc/archacpi.c | |
parent | 05825fd78e8649efa1137e442a6305db5eb4755f (diff) |
acpi: remove "cannot get pci bus number for ..." debug prints
on almost all machines, we get tons of these prints for pci busses that
are not physically there but are described in the ACPI namespace. the
reason that we enumerate these is because we do not enumerate _INI and _STA
methods to check if they are present. we just match the information with
the PCI devices we enumerated with our generic pci code. this works fine and
doesnt require aml code to poke arround in pci config space.
Diffstat (limited to 'sys/src/9/pc/archacpi.c')
-rw-r--r-- | sys/src/9/pc/archacpi.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/src/9/pc/archacpi.c b/sys/src/9/pc/archacpi.c index f1c94e607..9e40f452b 100644 --- a/sys/src/9/pc/archacpi.c +++ b/sys/src/9/pc/archacpi.c @@ -284,10 +284,8 @@ pcibusno(void *dot) return -1; tbdf = MKBUS(BusPCI, bno, adr>>16, adr&0xFFFF); pdev = pcimatchtbdf(tbdf); - if(pdev == nil || pdev->bridge == nil){ - print("pcibusno: bridge tbdf %luX not found\n", (ulong)tbdf); + if(pdev == nil || pdev->bridge == nil) return -1; - } return BUSBNO(pdev->bridge->tbdf); } @@ -299,10 +297,8 @@ enumprt(void *dot, void *) int n, i; bno = pcibusno(dot); - if(bno < 0){ - print("enumprt: cannot get pci bus number for %V\n", dot); + if(bno < 0) return 1; - } /* evalulate _PRT method */ p = nil; |