summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/cs_internal.h
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2008-08-03 12:22:40 +0200
committerDominik Brodowski <linux@dominikbrodowski.net>2008-08-23 02:34:28 +0200
commit3f9c5f4cb7e00d424a56a6431e9c98b3b17851e4 (patch)
treeccb419c84db114cb2eecc9653b8283d77a3268f6 /drivers/pcmcia/cs_internal.h
parent926c5402c287f6d911f7d00f936f09ea00880527 (diff)
downloadop-kernel-dev-3f9c5f4cb7e00d424a56a6431e9c98b3b17851e4.zip
op-kernel-dev-3f9c5f4cb7e00d424a56a6431e9c98b3b17851e4.tar.gz
pcmcia: deprecate CS_BAD_TUPLE
CS_BAD_TUPLE was used to denote a bad tuple being passed to the parse function. Therefore, replace it with -EINVAL and a verbose message. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/cs_internal.h')
-rw-r--r--drivers/pcmcia/cs_internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pcmcia/cs_internal.h b/drivers/pcmcia/cs_internal.h
index 384a76b..3fcdf4f 100644
--- a/drivers/pcmcia/cs_internal.h
+++ b/drivers/pcmcia/cs_internal.h
@@ -137,9 +137,15 @@ extern int cs_debug_level(int);
dev_printk(KERN_DEBUG, &skt->dev, \
"cs: " fmt, ## arg); \
} while (0)
+#define __cs_dbg(lvl, fmt, arg...) do { \
+ if (cs_debug_level(lvl)) \
+ printk(KERN_DEBUG \
+ "cs: " fmt, ## arg); \
+} while (0)
#else
#define cs_dbg(skt, lvl, fmt, arg...) do { } while (0)
+#define __cs_dbg(lvl, fmt, arg...) do { } while (0)
#endif
#define cs_err(skt, fmt, arg...) \
OpenPOWER on IntegriCloud