From 50cf738d694a95eede504470676534309e641727 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 29 Jan 2013 18:24:48 +0100 Subject: [PATCH] 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. --- sys/src/9/pc/archacpi.c | 8 ++------ 1 file 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;