Skip to contentSkip to conversation

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

PATCH New Abd-Alrhman Masalkhi 1 participant 1 message Jun 28, 2021

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

PATCH 1/1 arch: parisc: kernel: Remove DPRINTK definition and replace it with pr_debug

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

---
 arch/parisc/kernel/pdc_chassis.c | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)
arch/parisc/kernel/pdc_chassis.c +3 -10
index 75ae88d13909..59433c50c58b 100644
@@ -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()) {
Signature · 1 line
2.29.0.rc1.dirty