]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
scsi: lpfc: Fix nvme_info sysfs output to be consistent
authorJames Smart <jsmart2021@gmail.com>
Fri, 16 Jun 2017 05:56:42 +0000 (22:56 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Jun 2017 01:39:22 +0000 (21:39 -0400)
First line of nvme_info output is not consistent. There is an Extra
colon in the format.

First line of output will contain one of the following strings:
NVME Initiator Enabled
NVME Target Enabled
NVME Disabled

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_attr.c

index 66269e342c7e6fc0d814e42722f43670cb6b2ff3..af22602b105831124954695e9fee56c767759b51 100644 (file)
@@ -171,7 +171,7 @@ lpfc_nvme_info_show(struct device *dev, struct device_attribute *attr,
                else
                        statep = "INIT";
                len += snprintf(buf + len, PAGE_SIZE - len,
-                               "NVME Target: Enabled  State %s\n",
+                               "NVME Target Enabled  State %s\n",
                                statep);
                len += snprintf(buf + len, PAGE_SIZE - len,
                                "%s%d WWPN x%llx WWNN x%llx DID x%06x\n",