scsi: smartpqi: cleanup raid map warning message
authorKevin Barnett <kevin.barnett@microsemi.com>
Wed, 27 Sep 2017 21:30:05 +0000 (16:30 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 3 Oct 2017 02:26:26 +0000 (22:26 -0400)
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 <scott.benesh@microsemi.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi_init.c

index 677b88e58390417a3c35c32f09d7bd54cbdbe0ba..be83d92e1847f1e088f2078ff5a319fbafe6a558 100644 (file)
@@ -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;
 }