public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.22 fix for pci_hotplug
@ 2002-06-18  2:09 Matthew Harrell
  2002-06-18 21:55 ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: Matthew Harrell @ 2002-06-18  2:09 UTC (permalink / raw)
  To: Kernel List


--- linux/drivers/hotplug/pci_hotplug_core.c-ori	Mon Jun 17 22:01:17 2002
+++ linux/drivers/hotplug/pci_hotplug_core.c	Mon Jun 17 22:03:33 2002
@@ -183,13 +183,13 @@
 /* default file operations */
 static ssize_t default_read_file (struct file *file, char *buf, size_t count, loff_t *ppos)
 {
-	dbg ("\n");
+	dbg ("%s", "\n");
 	return 0;
 }
 
 static ssize_t default_write_file (struct file *file, const char *buf, size_t count, loff_t *ppos)
 {
-	dbg ("\n");
+	dbg ("%s", "\n");
 	return count;
 }
 
@@ -417,7 +417,7 @@
 	}
 
 	if (!parent) {
-		dbg("Ah! can not find a parent!\n");
+		dbg("%s", "Ah! can not find a parent!\n");
 		return -EINVAL;
 	}
 
@@ -537,7 +537,7 @@
 		return 0;
 
 	if (slot == NULL) {
-		dbg("slot == NULL???\n");
+		dbg("%s", "slot == NULL???\n");
 		return -ENODEV;
 	}
 
@@ -578,7 +578,7 @@
 		return 0;
 
 	if (slot == NULL) {
-		dbg("slot == NULL???\n");
+		dbg("%s", "slot == NULL???\n");
 		return -ENODEV;
 	}
 
@@ -648,7 +648,7 @@
 		return 0;
 
 	if (slot == NULL) {
-		dbg("slot == NULL???\n");
+		dbg("%s", "slot == NULL???\n");
 		return -ENODEV;
 	}
 
@@ -689,7 +689,7 @@
 		return 0;
 
 	if (slot == NULL) {
-		dbg("slot == NULL???\n");
+		dbg("%s", "slot == NULL???\n");
 		return -ENODEV;
 	}
 
@@ -741,7 +741,7 @@
 		return 0;
 
 	if (slot == NULL) {
-		dbg("slot == NULL???\n");
+		dbg("%s", "slot == NULL???\n");
 		return -ENODEV;
 	}
 
@@ -785,7 +785,7 @@
 		return 0;
 
 	if (slot == NULL) {
-		dbg("slot == NULL???\n");
+		dbg("%s", "slot == NULL???\n");
 		return -ENODEV;
 	}
 
@@ -826,7 +826,7 @@
 		return 0;
 
 	if (slot == NULL) {
-		dbg("slot == NULL???\n");
+		dbg("%s", "slot == NULL???\n");
 		return -ENODEV;
 	}
 
@@ -1070,7 +1070,7 @@
 	spin_lock_init(&mount_lock);
 	spin_lock_init(&list_lock);
 
-	dbg("registering filesystem.\n");
+	dbg("%s", "registering filesystem.\n");
 	result = register_filesystem(&pcihpfs_type);
 	if (result) {
 		err("register_filesystem failed with %d\n", result);
--- linux/drivers/hotplug/pci_hotplug_util.c-ori	Mon Jun 17 22:04:58 2002
+++ linux/drivers/hotplug/pci_hotplug_util.c	Mon Jun 17 22:05:02 2002
@@ -103,7 +103,7 @@
 	dbg("%p, %d, %d, %d, %d, %p\n", ops, bus, slot, function, where, value);
 	dev = pci_find_slot(bus, PCI_DEVFN(slot, function));
 	if (dev) {
-		dbg("using native pci_dev\n");
+		dbg("%s", "using native pci_dev\n");
 		return pci_read_config_byte (dev, where, value);
 	}
 	
@@ -137,7 +137,7 @@
 	dbg("%p, %d, %d, %d, %d, %p\n", ops, bus, slot, function, where, value);
 	dev = pci_find_slot(bus, PCI_DEVFN(slot, function));
 	if (dev) {
-		dbg("using native pci_dev\n");
+		dbg("%s", "using native pci_dev\n");
 		return pci_read_config_word (dev, where, value);
 	}
 	
@@ -172,7 +172,7 @@
 	dbg("%p, %d, %d, %d, %d, %p\n", ops, bus, slot, function, where, value);
 	dev = pci_find_slot(bus, PCI_DEVFN(slot, function));
 	if (dev) {
-		dbg("using native pci_dev\n");
+		dbg("%s", "using native pci_dev\n");
 		return pci_read_config_dword (dev, where, value);
 	}
 	
@@ -207,7 +207,7 @@
 	dbg("%p, %d, %d, %d, %d, %d\n", ops, bus, slot, function, where, value);
 	dev = pci_find_slot(bus, PCI_DEVFN(slot, function));
 	if (dev) {
-		dbg("using native pci_dev\n");
+		dbg("%s", "using native pci_dev\n");
 		return pci_write_config_byte (dev, where, value);
 	}
 	
@@ -242,7 +242,7 @@
 	dbg("%p, %d, %d, %d, %d, %d\n", ops, bus, slot, function, where, value);
 	dev = pci_find_slot(bus, PCI_DEVFN(slot, function));
 	if (dev) {
-		dbg("using native pci_dev\n");
+		dbg("%s", "using native pci_dev\n");
 		return pci_write_config_word (dev, where, value);
 	}
 	
@@ -277,7 +277,7 @@
 	dbg("%p, %d, %d, %d, %d, %d\n", ops, bus, slot, function, where, value);
 	dev = pci_find_slot(bus, PCI_DEVFN(slot, function));
 	if (dev) {
-		dbg("using native pci_dev\n");
+		dbg("%s", "using native pci_dev\n");
 		return pci_write_config_dword (dev, where, value);
 	}
 	


-- 
  Matthew Harrell                          There are only 10 types of people in
  Bit Twiddlers, Inc.                       this world: those who understand
  mharrell@bittwiddlers.com                 binary and those who don't.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-06-19 21:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-18  2:09 2.5.22 fix for pci_hotplug Matthew Harrell
2002-06-18 21:55 ` Greg KH
2002-06-18 23:04   ` Adrian Bunk
2002-06-19 17:36     ` Greg KH
2002-06-19 21:26       ` Adrian Bunk
2002-06-19 21:44         ` Greg KH

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