summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/saa7146.h
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2002-12-17 17:30:45 +0000
committerMichael Hunold <devnull@localhost>2002-12-17 17:30:45 +0000
commitcf401831b01431d455d70fb64a8f5e1d3b947e26 (patch)
tree7387425138f6e98e2091329a31dfca0d0aa74981 /linux/drivers/media/common/saa7146.h
parent648fb619790cc40a8f4eec94e585a653bd680122 (diff)
downloadmediapointer-dvb-s2-cf401831b01431d455d70fb64a8f5e1d3b947e26.tar.gz
mediapointer-dvb-s2-cf401831b01431d455d70fb64a8f5e1d3b947e26.tar.bz2
Misc. build fixes (beautification, remove some unnecessary printks)
for the new saa7146 core, the mxb driver and the saa7111 driver.
Diffstat (limited to 'linux/drivers/media/common/saa7146.h')
-rw-r--r--linux/drivers/media/common/saa7146.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/linux/drivers/media/common/saa7146.h b/linux/drivers/media/common/saa7146.h
index 752a10d2d..97aa765b8 100644
--- a/linux/drivers/media/common/saa7146.h
+++ b/linux/drivers/media/common/saa7146.h
@@ -31,8 +31,14 @@
#define BUG_ON(condition) do { if ((condition)!=0) BUG(); } while(0)
#define BOARD_CAN_DO_VBI(dev) (dev->revision != 0 && 0 != dev->ext->vbi)
+/* this ugly preprocessor hack is necessary to convert stuff into
+ strings. since stuff can be a preprocessor token itself (like KBUILD_MODNAME is)
+ two stages are necessary */
+#define __stringify_fs(x) #x
+#define __stringify(x) __stringify_fs(x)
+
extern int debug;
-#define DEBUG_PROLOG printk("%s: %s(): ","KBUILD_MODNAME",__FUNCTION__)
+#define DEBUG_PROLOG printk("%s: %s(): ",__stringify(KBUILD_MODNAME),__FUNCTION__)
#define DEB_S(x) if (0!=(debug&0x01)) { DEBUG_PROLOG; printk x; } /* simple debug messages */
#define DEB_D(x) if (0!=(debug&0x02)) { DEBUG_PROLOG; printk x; } /* more detailed debug messages */
@@ -43,7 +49,7 @@ extern int debug;
#define DEB_CAP(x) if (0!=(debug&0x40)) { DEBUG_PROLOG; printk x; } /* capture debug messages */
#define ERR(x) { DEBUG_PROLOG; printk x; }
-#define INFO(x) { printk("%s: ","KBUILD_MODNAME"); printk x; }
+#define INFO(x) { printk("%s: ",__stringify(KBUILD_MODNAME)); printk x; }
#define IER_DISABLE(x,y) \
saa7146_write(x, IER, saa7146_read(x, IER) & ~(y));