* [PATCH] aio: don't confuse DEBUG define location
@ 2007-09-21 18:55 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2007-09-21 18:55 UTC (permalink / raw)
To: lkml; +Cc: akpm, zach.brown
From: Randy Dunlap <randy.dunlap@oracle.com>
I was debugging (via pr_debug()) why one test app was getting EINVAL
returns from aio. However, using DEBUG to enable pr_debug() needs to
be done before #include linux/kernel.h, so remove it from below there
so that someone doesn't have to debug pr_debug().
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Zach Brown <zach.brown@oracle.com>
---
fs/aio.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- linux-2.6.23-rc7.orig/fs/aio.c
+++ linux-2.6.23-rc7/fs/aio.c
@@ -8,6 +8,7 @@
*
* See ../COPYING for licensing terms.
*/
+
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/errno.h>
@@ -17,8 +18,6 @@
#include <linux/syscalls.h>
#include <linux/uio.h>
-#define DEBUG 0
-
#include <linux/sched.h>
#include <linux/fs.h>
#include <linux/file.h>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-21 18:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-21 18:55 [PATCH] aio: don't confuse DEBUG define location Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®