[PATCH] aio: don't confuse DEBUG define location

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Randy Dunlap <[email protected]>

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 <[email protected]>
Signed-off-by: Zach Brown <[email protected]>
---
 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>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux