]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libfc: Add debug statements when fc_fcp returns DID_ERROR to scsi-ml
authorRobert Love <robert.w.love@intel.com>
Sat, 13 Mar 2010 00:08:50 +0000 (16:08 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:23:44 +0000 (09:23 -0500)
commit2ad96947edb00cd031134891c54ea4bd51cef85c
tree0c1c7887fa668883d49856303c8ed51b2e09afd5
parent233fb9b1f510e68067db5fee19fea74d3f64811f
[SCSI] libfc: Add debug statements when fc_fcp returns DID_ERROR to scsi-ml

DID_ERROR cases can be ambigouos. Debugging FCP error cases
will be much easier if we have debug statements when we hit
these error conditions.

This patch simply adds debug messages using the FC_FCP_DBG
macro when we return DID_ERROR to SCSI. This way if a DID_ERROR
is reproducible turning on debug_logging will give a clue
to developers as to what the problem might be.

Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_fcp.c