Skip to content

Commit

Permalink
lpfc: Fix provide host name and OS name in RSNN-NN FC-GS command
Browse files Browse the repository at this point in the history
Signed-off-by: Dick Kennedy <[email protected]>
Signed-off-by: James Smart <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
  • Loading branch information
James Smart authored and James Bottomley committed Apr 10, 2015
1 parent 26d830e commit f0bf5f9
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions drivers/scsi/lpfc/lpfc_ct.c
Original file line number Diff line number Diff line change
Expand Up @@ -1074,8 +1074,25 @@ lpfc_vport_symbolic_node_name(struct lpfc_vport *vport, char *symbol,

lpfc_decode_firmware_rev(vport->phba, fwrev, 0);

n = snprintf(symbol, size, "Emulex %s FV%s DV%s",
vport->phba->ModelName, fwrev, lpfc_release_version);
n = snprintf(symbol, size, "Emulex %s", vport->phba->ModelName);

if (size < n)
return n;
n += snprintf(symbol + n, size - n, " FV%s", fwrev);

if (size < n)
return n;
n += snprintf(symbol + n, size - n, " DV%s", lpfc_release_version);

if (size < n)
return n;
n += snprintf(symbol + n, size - n, " HN:%s", init_utsname()->nodename);

/* Note :- OS name is "Linux" */
if (size < n)
return n;
n += snprintf(symbol + n, size - n, " OS:%s", init_utsname()->sysname);

return n;
}

Expand Down

0 comments on commit f0bf5f9

Please sign in to comment.