[PATCH] scsi: leapraid: fix incorrect dev_hdl logging
From: Hezekiah Mogere Joseph Mayaka
Date: Fri Dec 04 2026 - 12:07:28 EST
dev_hdl is __le16 but is passed to dev_info() without conversion, so
big-endian systems log the wrong handle. Device operation is not
affected.
Print the local hdl variable instead, which already holds the
converted value.
Fixes: 5597088c9e79 ("scsi: leapraid: Add new SCSI driver")
Signed-off-by: Hezekiah Mogere Joseph Mayaka <hmjm081106@xxxxxxxxx>
---
drivers/scsi/leapraid/leapraid_func.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/leapraid/leapraid_func.c b/drivers/scsi/leapraid/leapraid_func.c
index 573bccf1a4ce..9547f970a756 100644
--- a/drivers/scsi/leapraid/leapraid_func.c
+++ b/drivers/scsi/leapraid/leapraid_func.c
@@ -4886,7 +4886,7 @@ static void leapraid_scan_vol_after_reset(struct leapraid_adapter *adapter)
leapraid_sas_volume_add(adapter, &evt_data);
dev_info(&adapter->pdev->dev,
"add volume: hdl=0x%04x\n",
- vol_p1->dev_hdl);
+ hdl);
}
}
--
2.56.1