Commit beb29a6d authored by Joe Eykholt's avatar Joe Eykholt Committed by James Bottomley

[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: default avatarJoe Eykholt <jeykholt@cisco.com>
Signed-off-by: default avatarRobert Love <robert.w.love@intel.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 2f718d64
...@@ -51,22 +51,22 @@ do { \ ...@@ -51,22 +51,22 @@ do { \
do { \ do { \
CMD; \ CMD; \
} while (0); \ } while (0); \
} while (0); } while (0)
#define FC_LIBFC_DBG(fmt, args...) \ #define FC_LIBFC_DBG(fmt, args...) \
FC_CHECK_LOGGING(FC_LIBFC_LOGGING, \ FC_CHECK_LOGGING(FC_LIBFC_LOGGING, \
printk(KERN_INFO "libfc: " fmt, ##args);) printk(KERN_INFO "libfc: " fmt, ##args))
#define FC_LPORT_DBG(lport, fmt, args...) \ #define FC_LPORT_DBG(lport, fmt, args...) \
FC_CHECK_LOGGING(FC_LPORT_LOGGING, \ FC_CHECK_LOGGING(FC_LPORT_LOGGING, \
printk(KERN_INFO "lport: %6x: " fmt, \ printk(KERN_INFO "lport: %6x: " fmt, \
fc_host_port_id(lport->host), ##args);) fc_host_port_id(lport->host), ##args))
#define FC_DISC_DBG(disc, fmt, args...) \ #define FC_DISC_DBG(disc, fmt, args...) \
FC_CHECK_LOGGING(FC_DISC_LOGGING, \ FC_CHECK_LOGGING(FC_DISC_LOGGING, \
printk(KERN_INFO "disc: %6x: " fmt, \ printk(KERN_INFO "disc: %6x: " fmt, \
fc_host_port_id(disc->lport->host), \ fc_host_port_id(disc->lport->host), \
##args);) ##args))
#define FC_RPORT_DBG(rport, fmt, args...) \ #define FC_RPORT_DBG(rport, fmt, args...) \
do { \ do { \
...@@ -75,31 +75,31 @@ do { \ ...@@ -75,31 +75,31 @@ do { \
FC_CHECK_LOGGING(FC_RPORT_LOGGING, \ FC_CHECK_LOGGING(FC_RPORT_LOGGING, \
printk(KERN_INFO "rport: %6x: %6x: " fmt, \ printk(KERN_INFO "rport: %6x: %6x: " fmt, \
fc_host_port_id(lport->host), \ fc_host_port_id(lport->host), \
rport->port_id, ##args);) \ rport->port_id, ##args)); \
} while (0); } while (0)
#define FC_FCP_DBG(pkt, fmt, args...) \ #define FC_FCP_DBG(pkt, fmt, args...) \
FC_CHECK_LOGGING(FC_FCP_LOGGING, \ FC_CHECK_LOGGING(FC_FCP_LOGGING, \
printk(KERN_INFO "fcp: %6x: %6x: " fmt, \ printk(KERN_INFO "fcp: %6x: %6x: " fmt, \
fc_host_port_id(pkt->lp->host), \ fc_host_port_id(pkt->lp->host), \
pkt->rport->port_id, ##args);) pkt->rport->port_id, ##args))
#define FC_EM_DBG(em, fmt, args...) \ #define FC_EM_DBG(em, fmt, args...) \
FC_CHECK_LOGGING(FC_EM_LOGGING, \ FC_CHECK_LOGGING(FC_EM_LOGGING, \
printk(KERN_INFO "em: %6x: " fmt, \ printk(KERN_INFO "em: %6x: " fmt, \
fc_host_port_id(em->lp->host), \ fc_host_port_id(em->lp->host), \
##args);) ##args))
#define FC_EXCH_DBG(exch, fmt, args...) \ #define FC_EXCH_DBG(exch, fmt, args...) \
FC_CHECK_LOGGING(FC_EXCH_LOGGING, \ FC_CHECK_LOGGING(FC_EXCH_LOGGING, \
printk(KERN_INFO "exch: %6x: %4x: " fmt, \ printk(KERN_INFO "exch: %6x: %4x: " fmt, \
fc_host_port_id(exch->lp->host), \ fc_host_port_id(exch->lp->host), \
exch->xid, ##args);) exch->xid, ##args))
#define FC_SCSI_DBG(lport, fmt, args...) \ #define FC_SCSI_DBG(lport, fmt, args...) \
FC_CHECK_LOGGING(FC_SCSI_LOGGING, \ FC_CHECK_LOGGING(FC_SCSI_LOGGING, \
printk(KERN_INFO "scsi: %6x: " fmt, \ printk(KERN_INFO "scsi: %6x: " fmt, \
fc_host_port_id(lport->host), ##args);) fc_host_port_id(lport->host), ##args))
/* /*
* libfc error codes * libfc error codes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment