diff options
author | Roi Dayan <roid@mellanox.com> | 2013-05-01 09:25:25 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-05-01 20:34:13 -0400 |
commit | 4f3638826124b722b2c0dde5097bca182bf74125 (patch) | |
tree | 03e301c76a5ca9452b7ba74062e2efb7585d324b /drivers/infiniband/ulp/iser/iscsi_iser.h | |
parent | c1d786e68256001abe7b55f5f6831c8a996866b1 (diff) |
IB/iser: Move informational messages from error to info level
Introduce iser_info() and move informational messages that were
printed as errors to use that macro. Also, cleanup printk leftovers to
use the existing macros.
Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
[ Use pr_warn(... instead of printk(KERN_WARNING .... - Roland ]
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/ulp/iser/iscsi_iser.h')
-rw-r--r-- | drivers/infiniband/ulp/iser/iscsi_iser.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.h b/drivers/infiniband/ulp/iser/iscsi_iser.h index 0da04bf82044..1a570886cc03 100644 --- a/drivers/infiniband/ulp/iser/iscsi_iser.h +++ b/drivers/infiniband/ulp/iser/iscsi_iser.h | |||
@@ -42,6 +42,7 @@ | |||
42 | 42 | ||
43 | #include <linux/types.h> | 43 | #include <linux/types.h> |
44 | #include <linux/net.h> | 44 | #include <linux/net.h> |
45 | #include <linux/printk.h> | ||
45 | #include <scsi/libiscsi.h> | 46 | #include <scsi/libiscsi.h> |
46 | #include <scsi/scsi_transport_iscsi.h> | 47 | #include <scsi/scsi_transport_iscsi.h> |
47 | 48 | ||
@@ -69,15 +70,22 @@ | |||
69 | 70 | ||
70 | #define iser_dbg(fmt, arg...) \ | 71 | #define iser_dbg(fmt, arg...) \ |
71 | do { \ | 72 | do { \ |
72 | if (iser_debug_level > 1) \ | 73 | if (iser_debug_level > 2) \ |
73 | printk(KERN_DEBUG PFX "%s:" fmt,\ | 74 | printk(KERN_DEBUG PFX "%s:" fmt,\ |
74 | __func__ , ## arg); \ | 75 | __func__ , ## arg); \ |
75 | } while (0) | 76 | } while (0) |
76 | 77 | ||
77 | #define iser_warn(fmt, arg...) \ | 78 | #define iser_warn(fmt, arg...) \ |
78 | do { \ | 79 | do { \ |
80 | if (iser_debug_level > 1) \ | ||
81 | pr_warn(PFX "%s:" fmt, \ | ||
82 | __func__ , ## arg); \ | ||
83 | } while (0) | ||
84 | |||
85 | #define iser_info(fmt, arg...) \ | ||
86 | do { \ | ||
79 | if (iser_debug_level > 0) \ | 87 | if (iser_debug_level > 0) \ |
80 | printk(KERN_DEBUG PFX "%s:" fmt,\ | 88 | pr_info(PFX "%s:" fmt, \ |
81 | __func__ , ## arg); \ | 89 | __func__ , ## arg); \ |
82 | } while (0) | 90 | } while (0) |
83 | 91 | ||