diff options
-rw-r--r-- | drivers/scsi/libfc/fc_libfc.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/drivers/scsi/libfc/fc_libfc.h b/drivers/scsi/libfc/fc_libfc.h index 16d2162dda1f..eea0c3541b71 100644 --- a/drivers/scsi/libfc/fc_libfc.h +++ b/drivers/scsi/libfc/fc_libfc.h | |||
@@ -66,9 +66,21 @@ extern unsigned int fc_debug_logging; | |||
66 | 66 | ||
67 | #define FC_FCP_DBG(pkt, fmt, args...) \ | 67 | #define FC_FCP_DBG(pkt, fmt, args...) \ |
68 | FC_CHECK_LOGGING(FC_FCP_LOGGING, \ | 68 | FC_CHECK_LOGGING(FC_FCP_LOGGING, \ |
69 | printk(KERN_INFO "host%u: fcp: %6.6x: " fmt, \ | 69 | { \ |
70 | if ((pkt)->seq_ptr) { \ | ||
71 | struct fc_exch *_ep = NULL; \ | ||
72 | _ep = fc_seq_exch((pkt)->seq_ptr); \ | ||
73 | printk(KERN_INFO "host%u: fcp: %6.6x: " \ | ||
74 | "xid %04x-%04x: " fmt, \ | ||
70 | (pkt)->lp->host->host_no, \ | 75 | (pkt)->lp->host->host_no, \ |
71 | pkt->rport->port_id, ##args)) | 76 | (pkt)->rport->port_id, \ |
77 | (_ep)->oxid, (_ep)->rxid, ##args); \ | ||
78 | } else { \ | ||
79 | printk(KERN_INFO "host%u: fcp: %6.6x: " fmt, \ | ||
80 | (pkt)->lp->host->host_no, \ | ||
81 | (pkt)->rport->port_id, ##args); \ | ||
82 | } \ | ||
83 | }) | ||
72 | 84 | ||
73 | #define FC_EXCH_DBG(exch, fmt, args...) \ | 85 | #define FC_EXCH_DBG(exch, fmt, args...) \ |
74 | FC_CHECK_LOGGING(FC_EXCH_LOGGING, \ | 86 | FC_CHECK_LOGGING(FC_EXCH_LOGGING, \ |