From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Herbszt Subject: Re: [PATCH 10/21] lpfc: Fix provide host name and OS name in RSNN-NN FC-GS command Date: Sun, 5 Apr 2015 14:07:48 +0200 Message-ID: <20150405140748.00007e42@localhost> References: <1428095522.6933.38.camel@myfc17> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mout.gmx.net ([212.227.17.21]:62809 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751023AbbDEMHz (ORCPT ); Sun, 5 Apr 2015 08:07:55 -0400 In-Reply-To: <1428095522.6933.38.camel@myfc17> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: james.smart@emulex.com Cc: linux-scsi@vger.kernel.org, Sebastian Herbszt James Smart wrote: > Fix provide host name and OS name in RSNN-NN FC-GS command > > Signed-off-by: Dick Kennedy > Signed-off-by: James Smart > --- > drivers/scsi/lpfc/lpfc_ct.c | 21 +++++++++++++++++++-- > 1 file changed, 19 insertions(+), 2 deletions(-) > > diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c > index 61a32cd..c259eb0 100644 > --- a/drivers/scsi/lpfc/lpfc_ct.c > +++ b/drivers/scsi/lpfc/lpfc_ct.c > @@ -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" as per requirement BZ168199. */ > + if (size < n) > + return n; > + n += snprintf(symbol + n, size - n, " OS:%s", init_utsname()->sysname); > + > return n; > } Care to disclose which bugzilla contains BZ168199? Sebastian