only print 'PCI: ignoring bad value ...' once per boot.

This commit is contained in:
Ben Gras 2010-03-31 12:29:30 +00:00
parent d8b42a755d
commit de93803ab0

View 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);