summaryrefslogtreecommitdiff
path: root/drivers/net/ehea/ehea.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-12-07 07:45:28 +0300
committerDavid S. Miller <davem@davemloft.net>2010-12-07 07:45:28 +0300
commitcfa969e385a23e4c85f50e0ed5de25a2e18bf9d4 (patch)
treefccb9ec6086ce79db860678a77d72269d197ef6e /drivers/net/ehea/ehea.h
parent40fe7d88ab3eb711b307fab1b92aa6870914c975 (diff)
downloadlinux-cfa969e385a23e4c85f50e0ed5de25a2e18bf9d4.tar.xz
Revert "ehea: Use the standard logging functions"
This reverts commit 539995d18649023199986424d140f1d620372ce5. As reported by Stephen Rothwell, this breaks the build. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ehea/ehea.h')
-rw-r--r--drivers/net/ehea/ehea.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/ehea/ehea.h b/drivers/net/ehea/ehea.h
index 45e709f7609f..8e745e74828d 100644
--- a/drivers/net/ehea/ehea.h
+++ b/drivers/net/ehea/ehea.h
@@ -130,6 +130,19 @@
/* utility functions */
+#define ehea_info(fmt, args...) \
+ printk(KERN_INFO DRV_NAME ": " fmt "\n", ## args)
+
+#define ehea_error(fmt, args...) \
+ printk(KERN_ERR DRV_NAME ": Error in %s: " fmt "\n", __func__, ## args)
+
+#ifdef DEBUG
+#define ehea_debug(fmt, args...) \
+ printk(KERN_DEBUG DRV_NAME ": " fmt, ## args)
+#else
+#define ehea_debug(fmt, args...) do {} while (0)
+#endif
+
void ehea_dump(void *adr, int len, char *msg);
#define EHEA_BMASK(pos, length) (((pos) << 16) + (length))