Skip to content

Commit

Permalink
ide-cd: move debug defines into header
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Borislav Petkov authored and Bartlomiej Zolnierkiewicz committed Jan 2, 2009
1 parent 201bffa commit 0f38aaa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);
Expand Down
8 changes: 8 additions & 0 deletions drivers/ide/ide-cd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 0f38aaa

Please sign in to comment.