2.1.7[7-8] ide-pci.c "100%" printk and klogd

Andrea Arcangeli (arcangeli@mbox.queen.it)
Tue, 6 Jan 1998 19:32:27 +0100 (CET)


Debian klogd segfault at boot if there is the line:

PIIX4: not 100% native mode: will probe irqs later
^
in /proc/kmsg.

I suppose that klogd must be fixed... but since I haven' t klogd sources
now I fixed the printk on my local machine.

Alessandro reports syslogd `%' related problems too.

Andrea[s] Arcangeli

--- linux/drivers/block/ide-pci.c~ Tue Jan 6 19:15:48 1998
+++ linux/drivers/block/ide-pci.c Tue Jan 6 19:16:23 1998
@@ -266,7 +266,7 @@
* Can we trust the reported IRQ?
*/
if ((ccode >> 16) != PCI_CLASS_STORAGE_IDE || (progif & 5) != 5) {
- printk("%s: not 100%% native mode: will probe irqs later\n", d->name);
+ printk("%s: not native mode: will probe irqs later\n", d->name);
pciirq = 0;
} else if (tried_config) {
printk("%s: will probe irqs later\n", d->name);
@@ -275,7 +275,7 @@
printk("%s: bad irq from BIOS (%d): will probe later\n", d->name, pciirq);
pciirq = 0;
} else {
- printk("%s: 100%% native mode on irq %d\n", d->name, pciirq);
+ printk("%s: native mode on irq %d\n", d->name, pciirq);
}
/*
* Set up the IDE ports