From: Ben Gras Date: Wed, 31 Mar 2010 12:29:30 +0000 (+0000) Subject: only print 'PCI: ignoring bad value ...' once per boot. X-Git-Tag: v3.1.7~186 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.named.html?a=commitdiff_plain;h=de93803ab0abf47f9f27097f0cc109f5051b6310;p=minix.git only print 'PCI: ignoring bad value ...' once per boot. --- diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 3dfb20f0b..1089a791e 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -804,9 +804,14 @@ printf("probe_bus(%d)\n", busind); if (sts & (PSR_SSE|PSR_RMAS|PSR_RTAS)) { + static int warned = 0; + + if(!warned) { printf( "PCI: ignoring bad value 0x%x in sts for QEMU\n", sts & (PSR_SSE|PSR_RMAS|PSR_RTAS)); + warned = 1; + } } dstr= pci_dev_name(vid, did);