Skip to content

Commit

Permalink
scsi: smartpqi: fix disk name mount point
Browse files Browse the repository at this point in the history
- fix a formatting issue.

Reviewed-by: Mahesh Rajashekhara <mahesh.rajashekhara@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Dave Carroll <david.carroll@microsemi.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Murthy Bhat <murthy.bhat@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Murthy Bhat authored and Martin K. Petersen committed Dec 20, 2018
1 parent 84a77fe commit 5995b23
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/scsi/smartpqi/smartpqi_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -5833,7 +5833,12 @@ static ssize_t pqi_unique_id_show(struct device *dev,

spin_unlock_irqrestore(&ctrl_info->scsi_device_list_lock, flags);

return snprintf(buffer, PAGE_SIZE, "%16phN", uid);
return snprintf(buffer, PAGE_SIZE,
"%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X\n",
uid[0], uid[1], uid[2], uid[3],
uid[4], uid[5], uid[6], uid[7],
uid[8], uid[9], uid[10], uid[11],
uid[12], uid[13], uid[14], uid[15]);
}

static ssize_t pqi_lunid_show(struct device *dev,
Expand Down

0 comments on commit 5995b23

Please sign in to comment.