07/37 alpha: add printk() KERN_ constants to
Subsystems (2)
PATCH 1/1 07/37 alpha: add printk() KERN_ constants to
Signed-off-by James Nelson <[email protected]>
---
arch/alpha/kernel/core_polaris.c +5 -6
@@ -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