Re: [PATCH 2/3] smartpqi: cleanup raid map warning message

2017-09-29 Thread Tomas Henzl
On 27.9.2017 23:30, Don Brace wrote:
> From: Kevin Barnett 
>
> 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 
> Signed-off-by: Kevin Barnett 
> Signed-off-by: Don Brace 

Reviewed-by: Tomas Henzl 



[PATCH 2/3] smartpqi: cleanup raid map warning message

2017-09-27 Thread Don Brace
From: Kevin Barnett 

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 
Signed-off-by: Kevin Barnett 
Signed-off-by: Don Brace 
---
 drivers/scsi/smartpqi/smartpqi_init.c |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/smartpqi/smartpqi_init.c 
b/drivers/scsi/smartpqi/smartpqi_init.c
index 677b88e..be83d92 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(_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 *)>scsi3addr),
+   *((u32 *)>scsi3addr[4]), err_msg);
 
return -EINVAL;
 }