Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226798
b: refs/heads/master
c: 9b90dc8
h: refs/heads/master
v: v3
  • Loading branch information
Yi Zou authored and James Bottomley committed Dec 21, 2010
1 parent df4e5b0 commit 7b6a413
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 11aa99001afdbe5fe152e833aa1fea82b85dbeda
refs/heads/master: 9b90dc80ba2e566a48585174b1e5ab00e16f0456
16 changes: 14 additions & 2 deletions trunk/drivers/scsi/libfc/fc_libfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,21 @@ extern unsigned int fc_debug_logging;

#define FC_FCP_DBG(pkt, fmt, args...) \
FC_CHECK_LOGGING(FC_FCP_LOGGING, \
printk(KERN_INFO "host%u: fcp: %6.6x: " fmt, \
{ \
if ((pkt)->seq_ptr) { \
struct fc_exch *_ep = NULL; \
_ep = fc_seq_exch((pkt)->seq_ptr); \
printk(KERN_INFO "host%u: fcp: %6.6x: " \
"xid %04x-%04x: " fmt, \
(pkt)->lp->host->host_no, \
pkt->rport->port_id, ##args))
(pkt)->rport->port_id, \
(_ep)->oxid, (_ep)->rxid, ##args); \
} else { \
printk(KERN_INFO "host%u: fcp: %6.6x: " fmt, \
(pkt)->lp->host->host_no, \
(pkt)->rport->port_id, ##args); \
} \
})

#define FC_EXCH_DBG(exch, fmt, args...) \
FC_CHECK_LOGGING(FC_EXCH_LOGGING, \
Expand Down

0 comments on commit 7b6a413

Please sign in to comment.