only print 'PCI: ignoring bad value ...' once per boot.
This commit is contained in:
parent
d8b42a755d
commit
de93803ab0
|
@ -804,9 +804,14 @@ printf("probe_bus(%d)\n", busind);
|
||||||
|
|
||||||
if (sts & (PSR_SSE|PSR_RMAS|PSR_RTAS))
|
if (sts & (PSR_SSE|PSR_RMAS|PSR_RTAS))
|
||||||
{
|
{
|
||||||
|
static int warned = 0;
|
||||||
|
|
||||||
|
if(!warned) {
|
||||||
printf(
|
printf(
|
||||||
"PCI: ignoring bad value 0x%x in sts for QEMU\n",
|
"PCI: ignoring bad value 0x%x in sts for QEMU\n",
|
||||||
sts & (PSR_SSE|PSR_RMAS|PSR_RTAS));
|
sts & (PSR_SSE|PSR_RMAS|PSR_RTAS));
|
||||||
|
warned = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dstr= pci_dev_name(vid, did);
|
dstr= pci_dev_name(vid, did);
|
||||||
|
|
Loading…
Reference in a new issue