summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/iser/iscsi_iser.h
diff options
context:
space:
mode:
authorEli Dorfman <dorfman.eli@gmail.com>2008-04-29 13:46:52 -0700
committerRoland Dreier <rolandd@cisco.com>2008-04-29 13:46:52 -0700
commit6f735e36bad6fa4949271b3c3d0f331aad812313 (patch)
treeeff436b7e4126b28a59dd7cc9c71e1fca783ce66 /drivers/infiniband/ulp/iser/iscsi_iser.h
parent7df109d917e85d3da2e25bd495c4997e87ed2a4e (diff)
downloadlinux-6f735e36bad6fa4949271b3c3d0f331aad812313.tar.gz
linux-6f735e36bad6fa4949271b3c3d0f331aad812313.tar.bz2
linux-6f735e36bad6fa4949271b3c3d0f331aad812313.zip
IB/iser: Move high-volume debug output to higher debug level
Add another level for debug. Signed-off-by: Eli Dorfman <elid@voltaire.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp/iser/iscsi_iser.h')
-rw-r--r--drivers/infiniband/ulp/iser/iscsi_iser.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.h b/drivers/infiniband/ulp/iser/iscsi_iser.h
index 1ee867b1b341..a8c1b300e34d 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.h
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.h
@@ -71,6 +71,13 @@
#define iser_dbg(fmt, arg...) \
do { \
+ if (iser_debug_level > 1) \
+ printk(KERN_DEBUG PFX "%s:" fmt,\
+ __func__ , ## arg); \
+ } while (0)
+
+#define iser_warn(fmt, arg...) \
+ do { \
if (iser_debug_level > 0) \
printk(KERN_DEBUG PFX "%s:" fmt,\
__func__ , ## arg); \