Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89708
b: refs/heads/master
c: b75db73
h: refs/heads/master
v: v3
  • Loading branch information
Martin Peschke authored and James Bottomley committed Apr 7, 2008
1 parent c001e6d commit 94b0e00
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 07c70d26b556b342e7ad285963974808efba3104
refs/heads/master: b75db73159ccffaf60a67896fdfed3856b1f65e3
14 changes: 14 additions & 0 deletions trunk/drivers/s390/scsi/zfcp_dbf.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ void zfcp_hba_dbf_event_fsf_response(struct zfcp_fsf_req *fsf_req)
(fsf_req->fsf_command == FSF_QTCB_OPEN_LUN)) {
strncpy(rec->tag2, "open", ZFCP_DBF_TAG_SIZE);
level = 4;
} else if (qtcb->header.log_length) {
strncpy(rec->tag2, "qtcb", ZFCP_DBF_TAG_SIZE);
level = 5;
} else {
strncpy(rec->tag2, "norm", ZFCP_DBF_TAG_SIZE);
level = 6;
Expand Down Expand Up @@ -250,6 +253,17 @@ void zfcp_hba_dbf_event_fsf_response(struct zfcp_fsf_req *fsf_req)

debug_event(adapter->hba_dbf, level,
rec, sizeof(struct zfcp_hba_dbf_record));

/* have fcp channel microcode fixed to use as little as possible */
if (fsf_req->fsf_command != FSF_QTCB_FCP_CMND) {
/* adjust length skipping trailing zeros */
char *buf = (char *)qtcb + qtcb->header.log_start;
int len = qtcb->header.log_length;
for (; len && !buf[len - 1]; len--);
zfcp_dbf_hexdump(adapter->hba_dbf, rec, sizeof(*rec), level,
buf, len);
}

spin_unlock_irqrestore(&adapter->hba_dbf_lock, flags);
}

Expand Down

0 comments on commit 94b0e00

Please sign in to comment.