]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ibmvfc: Byte swap status and error codes when logging
authorTyrel Datwyler <tyreld@linux.vnet.ibm.com>
Wed, 20 Mar 2019 19:56:53 +0000 (14:56 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 28 Mar 2019 01:34:20 +0000 (21:34 -0400)
commit5123c108cc8b842d58baa3027aa70ed39cef67c7
treea58b98cdcdff7ad6e286f316067b1900df9fd96c
parente3b95000ee2a1910ca2bf1e96061131917baf335
scsi: ibmvfc: Byte swap status and error codes when logging

Status and error codes are returned in big endian from the VIOS. The values
are translated into a human readable format when logged, but the values are
also logged. This patch byte swaps those values so that they are consistent
between BE and LE platforms.

Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ibmvscsi/ibmvfc.c