public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] remove annoying ISAPNP message
@ 2002-02-15 13:24 Andrey Panin
  0 siblings, 0 replies; only message in thread
From: Andrey Panin @ 2002-02-15 13:24 UTC (permalink / raw)
  To: trivial; +Cc: linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 411 bytes --]

Hi,

here is first (I hope) patch for you :))

This patch removes useless messages like:
"isapnp: Calling quirk for 02:00".

These were debug messages some years ago and IMHO totally useless now.

Patch applies cleanly to 2.5.5 and should also apply to 2.4.x.

Best regards.

-- 
Andrey Panin            | Embedded systems software engineer
pazke@orbita1.ru        | PGP key: wwwkeys.eu.pgp.net

[-- Attachment #1.2: patch-isapnp-q --]
[-- Type: text/plain, Size: 815 bytes --]

diff -urN -X /usr/dontdiff /linux.vanilla/drivers/pnp/quirks.c /linux/drivers/pnp/quirks.c
--- /linux.vanilla/drivers/pnp/quirks.c	Tue Oct 30 15:55:32 2001
+++ /linux/drivers/pnp/quirks.c	Tue Oct 30 16:59:45 2001
@@ -18,6 +18,10 @@
 #include <linux/isapnp.h>
 #include <linux/string.h>
 
+#if 0
+#define ISAPNP_DEBUG
+#endif
+
 static void __init quirk_awe32_resources(struct pci_dev *dev)
 {
 	struct isapnp_port *port, *port2, *port3;
@@ -139,8 +143,10 @@
 	while (isapnp_fixups[i].vendor != 0) {
 		if ((isapnp_fixups[i].vendor == dev->vendor) &&
 		    (isapnp_fixups[i].device == dev->device)) {
+#ifdef ISAPNP_DEBUG
 			printk(KERN_DEBUG "isapnp: Calling quirk for %02x:%02x\n",
 			       dev->bus->number, dev->devfn);
+#endif
 			isapnp_fixups[i].quirk_function(dev);
 		}
 		i++;

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-15 13:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-15 13:24 [PATCH] remove annoying ISAPNP message Andrey Panin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox