mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 22:05:08 +00:00
scsi: mpt3sas: Fix endianness for ActiveCablePowerRequirement
Covert ActiveCablePowerRequirement's value to target CPU endian before displaying it. Link: https://lore.kernel.org/r/20210330105106.20569-1-sreekanth.reddy@broadcom.com Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
4c51f95696
commit
c0629d70ca
@ -10820,7 +10820,8 @@ mpt3sas_scsih_event_callback(struct MPT3SAS_ADAPTER *ioc, u8 msix_index,
|
||||
pr_notice("cannot be powered and devices connected\n");
|
||||
pr_notice("to this active cable will not be seen\n");
|
||||
pr_notice("This active cable requires %d mW of power\n",
|
||||
ActiveCableEventData->ActiveCablePowerRequirement);
|
||||
le32_to_cpu(
|
||||
ActiveCableEventData->ActiveCablePowerRequirement));
|
||||
break;
|
||||
|
||||
case MPI26_EVENT_ACTIVE_CABLE_DEGRADED:
|
||||
|
Loading…
x
Reference in New Issue
Block a user