kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arch: parisc: kernel: Remove DPRINTK definition and replace it with pr_debug
@ 2021-06-28 21:18 Abd-Alrhman Masalkhi
  0 siblings, 0 replies; only message in thread
From: Abd-Alrhman Masalkhi @ 2021-06-28 21:18 UTC (permalink / raw)
  To: kernel-janitors; +Cc: Abd-Alrhman Masalkhi

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

Signed-off-by: Abd-Alrhman Masalkhi <abd.masalkhi@gmail.com>
---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-28 21:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 21:18 [PATCH] arch: parisc: kernel: Remove DPRINTK definition and replace it with pr_debug Abd-Alrhman Masalkhi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).