From: Kevin Barnett Date: Wed, 27 Sep 2017 21:30:05 +0000 (-0500) Subject: scsi: smartpqi: cleanup raid map warning message X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~6564^2~177 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=38a7338ab55a1e1e2e86113eb5694350c3a2c865;p=mirror_ubuntu-focal-kernel.git scsi: smartpqi: cleanup raid map warning message Fix a small cosmetic bug in a very rarely encountered error message that can occur when a LD has a corrupted raid map. Reviewed-by: Scott Benesh Reviewed-by: Tomas Henzl Signed-off-by: Kevin Barnett Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c index 677b88e58390..be83d92e1847 100644 --- a/drivers/scsi/smartpqi/smartpqi_init.c +++ b/drivers/scsi/smartpqi/smartpqi_init.c @@ -1078,9 +1078,9 @@ static int pqi_validate_raid_map(struct pqi_ctrl_info *ctrl_info, bad_raid_map: dev_warn(&ctrl_info->pci_dev->dev, - "scsi %d:%d:%d:%d %s\n", - ctrl_info->scsi_host->host_no, - device->bus, device->target, device->lun, err_msg); + "logical device %08x%08x %s\n", + *((u32 *)&device->scsi3addr), + *((u32 *)&device->scsi3addr[4]), err_msg); return -EINVAL; }