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)
commit3e6f7de43f4960fba8322b16531b0d6624a9322d
treea58b98cdcdff7ad6e286f316067b1900df9fd96c
parent95237c25d8d08ebc451dd2d793f7e765f57b0c9f
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