diff options
author | David S. Miller <davem@davemloft.net> | 2010-12-07 07:45:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-07 07:45:28 +0300 |
commit | cfa969e385a23e4c85f50e0ed5de25a2e18bf9d4 (patch) | |
tree | fccb9ec6086ce79db860678a77d72269d197ef6e /drivers/net/ehea/ehea.h | |
parent | 40fe7d88ab3eb711b307fab1b92aa6870914c975 (diff) | |
download | linux-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.h | 13 |
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)) |