From 7111a4be3fa08b3575b2d210d66a0f45f00fe999 Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Sun, 24 Jul 2011 19:08:32 +0200 Subject: [PATCH] Disable annoying xen cdrom dbg prints --- patches.fixes/xen-disable-cdrom-dbgprints.diff | 18 ++++++++++++++++++ series.conf | 1 + 2 files changed, 19 insertions(+) create mode 100644 patches.fixes/xen-disable-cdrom-dbgprints.diff diff --git a/patches.fixes/xen-disable-cdrom-dbgprints.diff b/patches.fixes/xen-disable-cdrom-dbgprints.diff new file mode 100644 index 0000000..14c87e4 --- /dev/null +++ b/patches.fixes/xen-disable-cdrom-dbgprints.diff @@ -0,0 +1,18 @@ +--- linux-2.6.38.3/drivers/xen/blkback/cdrom.c.orig 2011-07-24 18:44:14.795354823 +0200 ++++ linux-2.6.38.3/drivers/xen/blkback/cdrom.c 2011-07-24 18:45:46.278542130 +0200 +@@ -35,9 +35,15 @@ + #include "common.h" + + #undef DPRINTK ++ ++#undef DEBUG ++#ifdef DEBUG + #define DPRINTK(_f, _a...) \ + printk(KERN_DEBUG "(%s() file=%s, line=%d) " _f "\n", \ + __func__, __FILE__ , __LINE__ , ##_a ) ++#else ++#define DPRINTK(_f, _a...) ++#endif + + + #define MEDIA_PRESENT "media-present" diff --git a/series.conf b/series.conf index c4b6d41..60624d3 100644 --- a/series.conf +++ b/series.conf @@ -846,3 +846,4 @@ patches.qubes/nuke_balloon_minimum_target.patch patches.fixes/xen-blkfront-connect-overflow.patch patches.fixes/xencons_close_deadlock.patch + patches.fixes/xen-disable-cdrom-dbgprints.diff