Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f38aaa4 authored by Borislav Petkov's avatar Borislav Petkov Committed by Bartlomiej Zolnierkiewicz
Browse files

ide-cd: move debug defines into header



While at it:
- disable compiling-in debug support by default

Signed-off-by: default avatarBorislav Petkov <petkovbb@gmail.com>
[bart: fixup patch description]
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 201bffa4
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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 *);
+8 −0
Original line number Diff line number Diff line
@@ -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
 */