From de93803ab0abf47f9f27097f0cc109f5051b6310 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Wed, 31 Mar 2010 12:29:30 +0000 Subject: [PATCH] only print 'PCI: ignoring bad value ...' once per boot. --- drivers/pci/pci.c | 5 +++++ 1 file changed, 5 insertions(+) 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);