aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorRobert Love <robert.w.love@intel.com>2012-12-03 21:14:53 -0500
committerRobert Love <robert.w.love@intel.com>2012-12-14 13:38:55 -0500
commit8e6c5363dc52afbc60011c2c079bf4c4d26b1272 (patch)
treefa444a2ead4b5cb9f6a369cdf6c5ca3e09e6504d /drivers/scsi
parent6e89ea3f1032d5c762f1ae9b0bd2039794596813 (diff)
libfc, libfcoe, fcoe: Convert debug_logging macros to pr_info
Convert libfc, libfcoe and fcoe's debug_logging macros to use pr_info() instead of printk(KERN_INFO, ...). checkpatch.pl now complains about this, so convert libfcoe to preferred method. Signed-off-by: Robert Love <robert.w.love@intel.com> Tested-by: Marcus Dennis <marcusx.e.dennis@intel.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/fcoe/fcoe.h6
-rw-r--r--drivers/scsi/fcoe/libfcoe.h9
-rw-r--r--drivers/scsi/libfc/fc_libfc.h38
3 files changed, 26 insertions, 27 deletions
diff --git a/drivers/scsi/fcoe/fcoe.h b/drivers/scsi/fcoe/fcoe.h
index b42dc32cb5eb..2b53672bf932 100644
--- a/drivers/scsi/fcoe/fcoe.h
+++ b/drivers/scsi/fcoe/fcoe.h
@@ -55,12 +55,12 @@ do { \
55 55
56#define FCOE_DBG(fmt, args...) \ 56#define FCOE_DBG(fmt, args...) \
57 FCOE_CHECK_LOGGING(FCOE_LOGGING, \ 57 FCOE_CHECK_LOGGING(FCOE_LOGGING, \
58 printk(KERN_INFO "fcoe: " fmt, ##args);) 58 pr_info("fcoe: " fmt, ##args);)
59 59
60#define FCOE_NETDEV_DBG(netdev, fmt, args...) \ 60#define FCOE_NETDEV_DBG(netdev, fmt, args...) \
61 FCOE_CHECK_LOGGING(FCOE_NETDEV_LOGGING, \ 61 FCOE_CHECK_LOGGING(FCOE_NETDEV_LOGGING, \
62 printk(KERN_INFO "fcoe: %s: " fmt, \ 62 pr_info("fcoe: %s: " fmt, \
63 netdev->name, ##args);) 63 netdev->name, ##args);)
64 64
65/** 65/**
66 * struct fcoe_interface - A FCoE interface 66 * struct fcoe_interface - A FCoE interface
diff --git a/drivers/scsi/fcoe/libfcoe.h b/drivers/scsi/fcoe/libfcoe.h
index 63d8faedca9f..d3bb16d11401 100644
--- a/drivers/scsi/fcoe/libfcoe.h
+++ b/drivers/scsi/fcoe/libfcoe.h
@@ -17,17 +17,16 @@ do { \
17 17
18#define LIBFCOE_DBG(fmt, args...) \ 18#define LIBFCOE_DBG(fmt, args...) \
19 LIBFCOE_CHECK_LOGGING(LIBFCOE_LOGGING, \ 19 LIBFCOE_CHECK_LOGGING(LIBFCOE_LOGGING, \
20 printk(KERN_INFO "libfcoe: " fmt, ##args);) 20 pr_info("libfcoe: " fmt, ##args);)
21 21
22#define LIBFCOE_FIP_DBG(fip, fmt, args...) \ 22#define LIBFCOE_FIP_DBG(fip, fmt, args...) \
23 LIBFCOE_CHECK_LOGGING(LIBFCOE_FIP_LOGGING, \ 23 LIBFCOE_CHECK_LOGGING(LIBFCOE_FIP_LOGGING, \
24 printk(KERN_INFO "host%d: fip: " fmt, \ 24 pr_info("host%d: fip: " fmt, \
25 (fip)->lp->host->host_no, ##args);) 25 (fip)->lp->host->host_no, ##args);)
26 26
27#define LIBFCOE_TRANSPORT_DBG(fmt, args...) \ 27#define LIBFCOE_TRANSPORT_DBG(fmt, args...) \
28 LIBFCOE_CHECK_LOGGING(LIBFCOE_TRANSPORT_LOGGING, \ 28 LIBFCOE_CHECK_LOGGING(LIBFCOE_TRANSPORT_LOGGING, \
29 printk(KERN_INFO "%s: " fmt, \ 29 pr_info("%s: " fmt, __func__, ##args);)
30 __func__, ##args);)
31 30
32#define LIBFCOE_SYSFS_DBG(cdev, fmt, args...) \ 31#define LIBFCOE_SYSFS_DBG(cdev, fmt, args...) \
33 LIBFCOE_CHECK_LOGGING(LIBFCOE_SYSFS_LOGGING, \ 32 LIBFCOE_CHECK_LOGGING(LIBFCOE_SYSFS_LOGGING, \
diff --git a/drivers/scsi/libfc/fc_libfc.h b/drivers/scsi/libfc/fc_libfc.h
index c2830cc66d6a..b74189d89322 100644
--- a/drivers/scsi/libfc/fc_libfc.h
+++ b/drivers/scsi/libfc/fc_libfc.h
@@ -41,25 +41,25 @@ extern unsigned int fc_debug_logging;
41 41
42#define FC_LIBFC_DBG(fmt, args...) \ 42#define FC_LIBFC_DBG(fmt, args...) \
43 FC_CHECK_LOGGING(FC_LIBFC_LOGGING, \ 43 FC_CHECK_LOGGING(FC_LIBFC_LOGGING, \
44 printk(KERN_INFO "libfc: " fmt, ##args)) 44 pr_info("libfc: " fmt, ##args))
45 45
46#define FC_LPORT_DBG(lport, fmt, args...) \ 46#define FC_LPORT_DBG(lport, fmt, args...) \
47 FC_CHECK_LOGGING(FC_LPORT_LOGGING, \ 47 FC_CHECK_LOGGING(FC_LPORT_LOGGING, \
48 printk(KERN_INFO "host%u: lport %6.6x: " fmt, \ 48 pr_info("host%u: lport %6.6x: " fmt, \
49 (lport)->host->host_no, \ 49 (lport)->host->host_no, \
50 (lport)->port_id, ##args)) 50 (lport)->port_id, ##args))
51 51
52#define FC_DISC_DBG(disc, fmt, args...) \ 52#define FC_DISC_DBG(disc, fmt, args...) \
53 FC_CHECK_LOGGING(FC_DISC_LOGGING, \ 53 FC_CHECK_LOGGING(FC_DISC_LOGGING, \
54 printk(KERN_INFO "host%u: disc: " fmt, \ 54 pr_info("host%u: disc: " fmt, \
55 fc_disc_lport(disc)->host->host_no, \ 55 fc_disc_lport(disc)->host->host_no, \
56 ##args)) 56 ##args))
57 57
58#define FC_RPORT_ID_DBG(lport, port_id, fmt, args...) \ 58#define FC_RPORT_ID_DBG(lport, port_id, fmt, args...) \
59 FC_CHECK_LOGGING(FC_RPORT_LOGGING, \ 59 FC_CHECK_LOGGING(FC_RPORT_LOGGING, \
60 printk(KERN_INFO "host%u: rport %6.6x: " fmt, \ 60 pr_info("host%u: rport %6.6x: " fmt, \
61 (lport)->host->host_no, \ 61 (lport)->host->host_no, \
62 (port_id), ##args)) 62 (port_id), ##args))
63 63
64#define FC_RPORT_DBG(rdata, fmt, args...) \ 64#define FC_RPORT_DBG(rdata, fmt, args...) \
65 FC_RPORT_ID_DBG((rdata)->local_port, (rdata)->ids.port_id, fmt, ##args) 65 FC_RPORT_ID_DBG((rdata)->local_port, (rdata)->ids.port_id, fmt, ##args)
@@ -70,13 +70,13 @@ extern unsigned int fc_debug_logging;
70 if ((pkt)->seq_ptr) { \ 70 if ((pkt)->seq_ptr) { \
71 struct fc_exch *_ep = NULL; \ 71 struct fc_exch *_ep = NULL; \
72 _ep = fc_seq_exch((pkt)->seq_ptr); \ 72 _ep = fc_seq_exch((pkt)->seq_ptr); \
73 printk(KERN_INFO "host%u: fcp: %6.6x: " \ 73 pr_info("host%u: fcp: %6.6x: " \
74 "xid %04x-%04x: " fmt, \ 74 "xid %04x-%04x: " fmt, \
75 (pkt)->lp->host->host_no, \ 75 (pkt)->lp->host->host_no, \
76 (pkt)->rport->port_id, \ 76 (pkt)->rport->port_id, \
77 (_ep)->oxid, (_ep)->rxid, ##args); \ 77 (_ep)->oxid, (_ep)->rxid, ##args); \
78 } else { \ 78 } else { \
79 printk(KERN_INFO "host%u: fcp: %6.6x: " fmt, \ 79 pr_info("host%u: fcp: %6.6x: " fmt, \
80 (pkt)->lp->host->host_no, \ 80 (pkt)->lp->host->host_no, \
81 (pkt)->rport->port_id, ##args); \ 81 (pkt)->rport->port_id, ##args); \
82 } \ 82 } \
@@ -84,14 +84,14 @@ extern unsigned int fc_debug_logging;
84 84
85#define FC_EXCH_DBG(exch, fmt, args...) \ 85#define FC_EXCH_DBG(exch, fmt, args...) \
86 FC_CHECK_LOGGING(FC_EXCH_LOGGING, \ 86 FC_CHECK_LOGGING(FC_EXCH_LOGGING, \
87 printk(KERN_INFO "host%u: xid %4x: " fmt, \ 87 pr_info("host%u: xid %4x: " fmt, \
88 (exch)->lp->host->host_no, \ 88 (exch)->lp->host->host_no, \
89 exch->xid, ##args)) 89 exch->xid, ##args))
90 90
91#define FC_SCSI_DBG(lport, fmt, args...) \ 91#define FC_SCSI_DBG(lport, fmt, args...) \
92 FC_CHECK_LOGGING(FC_SCSI_LOGGING, \ 92 FC_CHECK_LOGGING(FC_SCSI_LOGGING, \
93 printk(KERN_INFO "host%u: scsi: " fmt, \ 93 pr_info("host%u: scsi: " fmt, \
94 (lport)->host->host_no, ##args)) 94 (lport)->host->host_no, ##args))
95 95
96/* 96/*
97 * FC-4 Providers. 97 * FC-4 Providers.