Skip to contentSkip to conversation

07/37 alpha: add printk() KERN_ constants to

PATCH New James Nelson 1 participant 1 message Aug 30, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 07/37 alpha: add printk() KERN_ constants to

---

arch/alpha/kernel/core_polaris.c +5 -6
index 277674a..c774d64 100644
@@ -24,14 +24,14 @@ #include "pci_impl.h"
  */
 
 #define DEBUG_CONFIG 0
+#define PFX "pci: polaris: "
 
 #if DEBUG_CONFIG
-# define DBG_CFG(args)	printk args
+# define DBG_CFG(fmt, args...)	printk (KERN_DEBUG PFX "%s: " fmt, __FUNCTION__, ## args)
 #else
-# define DBG_CFG(args)
+# define DBG_CFG(fmt, args...)
 #endif
 
-
 /*
  * Given a bus, device, and function number, compute resulting
  * configuration space address.  This is fairly straightforward
@@ -72,9 +72,8 @@ mk_conf_addr(struct pci_bus *pbus, unsig
 	*pci_addr = (bus << 16) | (device_fn << 8) | (where) |
 		    POLARIS_DENSE_CONFIG_BASE;
 
-        DBG_CFG(("mk_conf_addr(bus=%d ,device_fn=0x%x, where=0x%x,"
-                 " returning address 0x%p\n"
-                 bus, device_fn, where, *pci_addr));
+        DBG_CFG("(bus=%d ,device_fn=0x%x, where=0x%x, returning address 0x%p\n",
+                 bus, device_fn, where, *pci_addr);
 
 	return 0;
 }

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors