aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/libfc/fc_exch.c13
-rw-r--r--include/scsi/libfc.h6
2 files changed, 6 insertions, 13 deletions
diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c
index f1fa2b196e98..3ad7f88e7ae3 100644
--- a/drivers/scsi/libfc/fc_exch.c
+++ b/drivers/scsi/libfc/fc_exch.c
@@ -1129,7 +1129,7 @@ static void fc_exch_recv_req(struct fc_lport *lp, struct fc_exch_mgr *mp,
1129 lp->tt.lport_recv(lp, sp, fp); 1129 lp->tt.lport_recv(lp, sp, fp);
1130 fc_exch_release(ep); /* release from lookup */ 1130 fc_exch_release(ep); /* release from lookup */
1131 } else { 1131 } else {
1132 FC_EM_DBG(mp, "exch/seq lookup failed: reject %x\n", reject); 1132 FC_LPORT_DBG(lp, "exch/seq lookup failed: reject %x\n", reject);
1133 fc_frame_free(fp); 1133 fc_frame_free(fp);
1134 } 1134 }
1135} 1135}
@@ -1235,13 +1235,12 @@ static void fc_exch_recv_resp(struct fc_exch_mgr *mp, struct fc_frame *fp)
1235 struct fc_seq *sp; 1235 struct fc_seq *sp;
1236 1236
1237 sp = fc_seq_lookup_orig(mp, fp); /* doesn't hold sequence */ 1237 sp = fc_seq_lookup_orig(mp, fp); /* doesn't hold sequence */
1238 if (!sp) { 1238
1239 if (!sp)
1239 atomic_inc(&mp->stats.xid_not_found); 1240 atomic_inc(&mp->stats.xid_not_found);
1240 FC_EM_DBG(mp, "seq lookup failed\n"); 1241 else
1241 } else {
1242 atomic_inc(&mp->stats.non_bls_resp); 1242 atomic_inc(&mp->stats.non_bls_resp);
1243 FC_EM_DBG(mp, "non-BLS response to sequence"); 1243
1244 }
1245 fc_frame_free(fp); 1244 fc_frame_free(fp);
1246} 1245}
1247 1246
@@ -1950,7 +1949,7 @@ void fc_exch_recv(struct fc_lport *lp, struct fc_exch_mgr *mp,
1950 fc_exch_recv_req(lp, mp, fp); 1949 fc_exch_recv_req(lp, mp, fp);
1951 break; 1950 break;
1952 default: 1951 default:
1953 FC_EM_DBG(mp, "dropping invalid frame (eof %x)", fr_eof(fp)); 1952 FC_LPORT_DBG(lp, "dropping invalid frame (eof %x)", fr_eof(fp));
1954 fc_frame_free(fp); 1953 fc_frame_free(fp);
1955 break; 1954 break;
1956 } 1955 }
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h
index b381b1ca9aec..f1bde91f98a2 100644
--- a/include/scsi/libfc.h
+++ b/include/scsi/libfc.h
@@ -88,12 +88,6 @@ do { \
88 (pkt)->lp->host->host_no, \ 88 (pkt)->lp->host->host_no, \
89 pkt->rport->port_id, ##args)) 89 pkt->rport->port_id, ##args))
90 90
91#define FC_EM_DBG(em, fmt, args...) \
92 FC_CHECK_LOGGING(FC_EM_LOGGING, \
93 printk(KERN_INFO "host%u: em: " fmt, \
94 (em)->lp->host->host_no, \
95 ##args))
96
97#define FC_EXCH_DBG(exch, fmt, args...) \ 91#define FC_EXCH_DBG(exch, fmt, args...) \
98 FC_CHECK_LOGGING(FC_EXCH_LOGGING, \ 92 FC_CHECK_LOGGING(FC_EXCH_LOGGING, \
99 printk(KERN_INFO "host%u: xid %4x: " fmt, \ 93 printk(KERN_INFO "host%u: xid %4x: " fmt, \