aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/libfc.h
diff options
context:
space:
mode:
authorJoe Eykholt <jeykholt@cisco.com>2009-07-29 20:04:06 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-08-22 18:52:03 -0400
commitbeb29a6d421f6dbd41d68d0621c1b28ad1d4a9f4 (patch)
treea899439f436fe913f8ee505bd367387395516c76 /include/scsi/libfc.h
parent2f718d64ecc7010463d36e6ec4ae37778d03fc0b (diff)
[SCSI] libfc: remove extra semicolons from debug macros
This is unlikely to cause any problems, but the libfc debug macros introduce extra undesirable semicolons. Signed-off-by: Joe Eykholt <jeykholt@cisco.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'include/scsi/libfc.h')
-rw-r--r--include/scsi/libfc.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h
index b92584a8843a..ef04a2c52b8c 100644
--- a/include/scsi/libfc.h
+++ b/include/scsi/libfc.h
@@ -51,22 +51,22 @@ do { \
51 do { \ 51 do { \
52 CMD; \ 52 CMD; \
53 } while (0); \ 53 } while (0); \
54} while (0); 54} while (0)
55 55
56#define FC_LIBFC_DBG(fmt, args...) \ 56#define FC_LIBFC_DBG(fmt, args...) \
57 FC_CHECK_LOGGING(FC_LIBFC_LOGGING, \ 57 FC_CHECK_LOGGING(FC_LIBFC_LOGGING, \
58 printk(KERN_INFO "libfc: " fmt, ##args);) 58 printk(KERN_INFO "libfc: " fmt, ##args))
59 59
60#define FC_LPORT_DBG(lport, fmt, args...) \ 60#define FC_LPORT_DBG(lport, fmt, args...) \
61 FC_CHECK_LOGGING(FC_LPORT_LOGGING, \ 61 FC_CHECK_LOGGING(FC_LPORT_LOGGING, \
62 printk(KERN_INFO "lport: %6x: " fmt, \ 62 printk(KERN_INFO "lport: %6x: " fmt, \
63 fc_host_port_id(lport->host), ##args);) 63 fc_host_port_id(lport->host), ##args))
64 64
65#define FC_DISC_DBG(disc, fmt, args...) \ 65#define FC_DISC_DBG(disc, fmt, args...) \
66 FC_CHECK_LOGGING(FC_DISC_LOGGING, \ 66 FC_CHECK_LOGGING(FC_DISC_LOGGING, \
67 printk(KERN_INFO "disc: %6x: " fmt, \ 67 printk(KERN_INFO "disc: %6x: " fmt, \
68 fc_host_port_id(disc->lport->host), \ 68 fc_host_port_id(disc->lport->host), \
69 ##args);) 69 ##args))
70 70
71#define FC_RPORT_DBG(rport, fmt, args...) \ 71#define FC_RPORT_DBG(rport, fmt, args...) \
72do { \ 72do { \
@@ -75,31 +75,31 @@ do { \
75 FC_CHECK_LOGGING(FC_RPORT_LOGGING, \ 75 FC_CHECK_LOGGING(FC_RPORT_LOGGING, \
76 printk(KERN_INFO "rport: %6x: %6x: " fmt, \ 76 printk(KERN_INFO "rport: %6x: %6x: " fmt, \
77 fc_host_port_id(lport->host), \ 77 fc_host_port_id(lport->host), \
78 rport->port_id, ##args);) \ 78 rport->port_id, ##args)); \
79} while (0); 79} while (0)
80 80
81#define FC_FCP_DBG(pkt, fmt, args...) \ 81#define FC_FCP_DBG(pkt, fmt, args...) \
82 FC_CHECK_LOGGING(FC_FCP_LOGGING, \ 82 FC_CHECK_LOGGING(FC_FCP_LOGGING, \
83 printk(KERN_INFO "fcp: %6x: %6x: " fmt, \ 83 printk(KERN_INFO "fcp: %6x: %6x: " fmt, \
84 fc_host_port_id(pkt->lp->host), \ 84 fc_host_port_id(pkt->lp->host), \
85 pkt->rport->port_id, ##args);) 85 pkt->rport->port_id, ##args))
86 86
87#define FC_EM_DBG(em, fmt, args...) \ 87#define FC_EM_DBG(em, fmt, args...) \
88 FC_CHECK_LOGGING(FC_EM_LOGGING, \ 88 FC_CHECK_LOGGING(FC_EM_LOGGING, \
89 printk(KERN_INFO "em: %6x: " fmt, \ 89 printk(KERN_INFO "em: %6x: " fmt, \
90 fc_host_port_id(em->lp->host), \ 90 fc_host_port_id(em->lp->host), \
91 ##args);) 91 ##args))
92 92
93#define FC_EXCH_DBG(exch, fmt, args...) \ 93#define FC_EXCH_DBG(exch, fmt, args...) \
94 FC_CHECK_LOGGING(FC_EXCH_LOGGING, \ 94 FC_CHECK_LOGGING(FC_EXCH_LOGGING, \
95 printk(KERN_INFO "exch: %6x: %4x: " fmt, \ 95 printk(KERN_INFO "exch: %6x: %4x: " fmt, \
96 fc_host_port_id(exch->lp->host), \ 96 fc_host_port_id(exch->lp->host), \
97 exch->xid, ##args);) 97 exch->xid, ##args))
98 98
99#define FC_SCSI_DBG(lport, fmt, args...) \ 99#define FC_SCSI_DBG(lport, fmt, args...) \
100 FC_CHECK_LOGGING(FC_SCSI_LOGGING, \ 100 FC_CHECK_LOGGING(FC_SCSI_LOGGING, \
101 printk(KERN_INFO "scsi: %6x: " fmt, \ 101 printk(KERN_INFO "scsi: %6x: " fmt, \
102 fc_host_port_id(lport->host), ##args);) 102 fc_host_port_id(lport->host), ##args))
103 103
104/* 104/*
105 * libfc error codes 105 * libfc error codes