* [PATCH 1/1, revised] fs: added KERN-DEBUG flag to dprintk macro
@ 2009-10-05 18:05 Pete
0 siblings, 0 replies; only message in thread
From: Pete @ 2009-10-05 18:05 UTC (permalink / raw)
To: kernel-janitors, trivial; +Cc: Matthew Wilcox, Joe Perches, linux-kernel
Signed-off-by: Greg Petr <greg.petr@gmail.com>
Hi,
The following is a trivial patch which adds KERN_DEBUG flag to the
dprintk macro. Made this a more generalized version.
--- linux-2.6/fs/aio.c 2009-10-05 14:46:11.000000000 +0530
+++ linux-2.6.test/fs/aio.c 2009-10-05 23:30:26.000000000 +0530
@@ -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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-05 18:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-05 18:05 [PATCH 1/1, revised] fs: added KERN-DEBUG flag to dprintk macro Pete
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox