[PATCH] arch: parisc: kernel: Remove DPRINTK definition and replace it with pr_debug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Removed the definition of DPRINTK macro and replaced it with pr_debug.

Signed-off-by: Abd-Alrhman Masalkhi <abd.masalkhi@xxxxxxxxx>
---
 arch/parisc/kernel/pdc_chassis.c | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/arch/parisc/kernel/pdc_chassis.c b/arch/parisc/kernel/pdc_chassis.c
index 75ae88d13909..59433c50c58b 100644
--- a/arch/parisc/kernel/pdc_chassis.c
+++ b/arch/parisc/kernel/pdc_chassis.c
@@ -10,13 +10,6 @@
  *    	    Find out how to get Chassis warnings out of PAT boxes?
  */
 
-#undef PDC_CHASSIS_DEBUG
-#ifdef PDC_CHASSIS_DEBUG
-#define DPRINTK(fmt, args...)	printk(fmt, ## args)
-#else
-#define DPRINTK(fmt, args...)
-#endif
-
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
@@ -73,7 +66,7 @@ static void __init pdc_chassis_checkold(void)
 		default:
 			break;
 	}
-	DPRINTK(KERN_DEBUG "%s: pdc_chassis_checkold(); pdc_chassis_old = %d\n", __FILE__, pdc_chassis_old);
+	pr_debug("%s: pdc_chassis_checkold(); pdc_chassis_old = %d\n", __FILE__, pdc_chassis_old);
 }
 #endif
 
@@ -126,7 +119,7 @@ void __init parisc_pdc_chassis_init(void)
 {
 #ifdef CONFIG_PDC_CHASSIS
 	if (likely(pdc_chassis_enabled)) {
-		DPRINTK(KERN_DEBUG "%s: parisc_pdc_chassis_init()\n", __FILE__);
+		pr_debug("%s: parisc_pdc_chassis_init()\n", __FILE__);
 
 		/* Let see if we have something to handle... */
 		printk(KERN_INFO "Enabling %s chassis codes support v%s\n",
@@ -165,7 +158,7 @@ int pdc_chassis_send_status(int message)
 #ifdef CONFIG_PDC_CHASSIS
 	if (likely(pdc_chassis_enabled)) {
 
-		DPRINTK(KERN_DEBUG "%s: pdc_chassis_send_status(%d)\n", __FILE__, message);
+		pr_debug("%s: pdc_chassis_send_status(%d)\n", __FILE__, message);
 
 #ifdef CONFIG_64BIT
 		if (is_pdc_pat()) {
-- 
2.29.0.rc1.dirty




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux