Skip to contentSkip to conversation

video: s3c-fb: use pr_debug instead of printk

PATCH Applied Jingoo Han 2 participants 2 messages May 7, 2012 – May 13, 2012 Framebuffer layer

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 video: s3c-fb: use pr_debug instead of printk

This patch uses pr_debug instead of printk to allow dynamic debugging.

---
 drivers/video/s3c-fb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/s3c-fb.c +1 -1
index ecb82bb..038546a 100644
@@ -47,7 +47,7 @@
 #ifdef CONFIG_FB_S3C_DEBUG_REGWRITE
 #undef writel
 #define writel(v, r) do { \
-	printk(KERN_DEBUG "%s: %08x => %p\n", __func__, (unsigned int)v, r); \
+	pr_debug("%s: %08x => %p\n", __func__, (unsigned int)v, r); \
 	__raw_writel(v, r); \
 } while (0)
 #endif /* FB_S3C_DEBUG_REGWRITE */
Signature · 1 line
1.7.1
#1 lore raw
Quoted 3 lines · Jingoo Han

This patch uses pr_debug instead of printk to allow dynamic debugging.

Applied.

Thanks,

Florian Tobias Schandinat

Quoted 17 lines
---
 drivers/video/s3c-fb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/s3c-fb.c +1 -1
index ecb82bb..038546a 100644
@@ -47,7 +47,7 @@
 #ifdef CONFIG_FB_S3C_DEBUG_REGWRITE
 #undef writel
 #define writel(v, r) do { \
-	printk(KERN_DEBUG "%s: %08x => %p\n", __func__, (unsigned int)v, r); \
+	pr_debug("%s: %08x => %p\n", __func__, (unsigned int)v, r); \
 	__raw_writel(v, r); \
 } while (0)
 #endif /* FB_S3C_DEBUG_REGWRITE */