ide-cd: move debug defines into header

Previous thread: ide: make IDE_AFLAG_.. numbering continuous again by Linux Kernel Mailing List on Friday, January 2, 2009 - 1:04 pm. (1 message)

Next thread: ide: factor out device type classifying from do_identify() by Linux Kernel Mailing List on Friday, January 2, 2009 - 1:03 pm. (1 message)
From: Linux Kernel Mailing List
Date: Friday, January 2, 2009 - 1:03 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0f38aa...
Commit:     0f38aaa4980fdf5de215e0a8bf6d6032164a6c4b
Parent:     201bffa46466b4afdf7d29db8eca3fa5decb39c8
Author:     Borislav Petkov <petkovbb@googlemail.com>
AuthorDate: Fri Jan 2 16:12:50 2009 +0100
Committer:  Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
CommitDate: Fri Jan 2 16:12:50 2009 +0100

    ide-cd: move debug defines into header
    
    While at it:
    - disable compiling-in debug support by default
    
    Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
    [bart: fixup patch description]
    Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
 drivers/ide/ide-cd.c |    8 --------
 drivers/ide/ide-cd.h |    8 ++++++++
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 5daa4dd..65e5513 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -53,14 +53,6 @@
 
 #include "ide-cd.h"
 
-#define IDECD_DEBUG_LOG		1
-
-#if IDECD_DEBUG_LOG
-#define ide_debug_log(lvl, fmt, args...) __ide_debug_log(lvl, fmt, args)
-#else
-#define ide_debug_log(lvl, fmt, args...) do {} while (0)
-#endif
-
 static DEFINE_MUTEX(idecd_ref_mutex);
 
 static void ide_cd_release(struct kref *);
diff --git a/drivers/ide/ide-cd.h b/drivers/ide/ide-cd.h
index d5ce336..389faa4 100644
--- a/drivers/ide/ide-cd.h
+++ b/drivers/ide/ide-cd.h
@@ -8,6 +8,14 @@
 #include <linux/cdrom.h>
 #include <asm/byteorder.h>
 
+#define IDECD_DEBUG_LOG		0
+
+#if IDECD_DEBUG_LOG
+#define ide_debug_log(lvl, fmt, args...) __ide_debug_log(lvl, fmt, args)
+#else
+#define ide_debug_log(lvl, fmt, args...) do {} while (0)
+#endif
+
 /*
  * typical timeout for packet command
  */
--

Previous thread: ide: make IDE_AFLAG_.. numbering continuous again by Linux Kernel Mailing List on Friday, January 2, 2009 - 1:04 pm. (1 message)

Next thread: ide: factor out device type classifying from do_identify() by Linux Kernel Mailing List on Friday, January 2, 2009 - 1:03 pm. (1 message)