]> Zhao Yanbai Git Server - minix.git/commitdiff
only print 'PCI: ignoring bad value ...' once per boot.
authorBen Gras <ben@minix3.org>
Wed, 31 Mar 2010 12:29:30 +0000 (12:29 +0000)
committerBen Gras <ben@minix3.org>
Wed, 31 Mar 2010 12:29:30 +0000 (12:29 +0000)
drivers/pci/pci.c

index 3dfb20f0b846c5a745d9d6de3963e4b9a7fca41f..1089a791edf88a1809f7359f74ce810a29634062 100644 (file)
@@ -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);