Skip to contentSkip to conversation

fs: added KERN-DEBUG flag to dprintk macro

PATCH New Pete 1 participant 1 message Oct 5, 2009

Subsystems (3)
lore
Share & tools
lore

Pete

author
#0 lore raw

PATCH 1/1 fs: added KERN-DEBUG flag to dprintk macro

Hi,

The following is a trivial patch which adds KERN_DEBUG flag to the dprintk macro. Made this a more generalized version.

fs/aio.c +2 -2
@@ -37,7 +37,7 @@
 #include <asm/uaccess.h>
 
 #if DEBUG > 1
-#define dprintk		printk
+#define dprintk(x...)		printk(KERN_DEBUG x)
 #else
 #define dprintk(x...)	do { ; } while (0)
 #endif
@@ -530,7 +530,7 @@ static void aio_fput_routine(struct work
  */
 static int __aio_put_req(struct kioctx *ctx, struct kiocb *req)
 {
-	dprintk(KERN_DEBUG "aio_put(%p): f_count=%ld\n",
+	dprintk("aio_put(%p): f_count=%ld\n",
 		req, atomic_long_read(&req->ki_filp->f_count));
 
 	assert_spin_locked(&ctx->ctx_lock);