From patchwork Fri Jun 16 05:56:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Smart X-Patchwork-Id: 9790577 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7724360231 for ; Fri, 16 Jun 2017 05:57:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 661282861F for ; Fri, 16 Jun 2017 05:57:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5AEB828641; Fri, 16 Jun 2017 05:57:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D4242861F for ; Fri, 16 Jun 2017 05:57:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752070AbdFPF5G (ORCPT ); Fri, 16 Jun 2017 01:57:06 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:32994 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbdFPF5F (ORCPT ); Fri, 16 Jun 2017 01:57:05 -0400 Received: by mail-qt0-f193.google.com with SMTP id w1so7898841qtg.0 for ; Thu, 15 Jun 2017 22:57:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=03TF3vJguXTjTcT+LhYE7w5X6g8DXuHBREXrd4S594A=; b=fwxj6Krj3f5uUA0BrC3M5qI2rXdNUY6+fk2x9dOkJxdnEsuQPAOggZwaTQQOx8M77a 99UKOy56OogFp1XdCOaRzAeINBpuRelVjfZape2flMZstk/KZUHUPsp/mnLB/IdLDUvU tBkCPDI0kutY+59zyxfA2P6lOINLdaB8Ul3DwevUc1mX2PvD7seTnrWGX+6lsB6ZRgl7 GesyQyG8oFPkJEinDZcJUs14N5rGF0o4Il6d96iLDx6innRxCu0FXwc08PbYadZMSFCp DT7la8vuJ+tY3ZAT7uOTeOE6MnRyHD35y/0UCz60RsAtqwmAERCYQT0s7eUwowsacKpd o94g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=03TF3vJguXTjTcT+LhYE7w5X6g8DXuHBREXrd4S594A=; b=nJZh41jhyu1P7mpnQn4YnEEfGP4DlBzor1nLgp2s77oN7W7nvaiSihjislRESxUKaR K8LUKBtA1wibX6j+ijw1rfGgkevhdp/Rj3C89enaANbac4wqRrfGbXjjHc74GU7AG1b5 ErUeVcSvxq++X2TWHnslcyWTUYm6vSa++CWfro9NgN20LD7RHgdYvKFufm24a8Iyax6W aX/0GdMtexWSiR7otZQdjqakRg4+OC0PyeqtasxzDqzedBrWyxIVLY73jt/jFxVhWwo5 LIWrpX9/bs0KTkp527ZJHAzfV8iDdpCsHMHHUVz9XvBHHl6S7m7bgkkcsWgTAsz0NghC JYIw== X-Gm-Message-State: AKS2vOxj7aYj7+nqyOvbcEAsUmPNITSCpTO/0G1FfApjI4ZGkv/aEu80 GMjdt/pjcdugm60F X-Received: by 10.55.72.145 with SMTP id v139mr3039353qka.33.1497592624272; Thu, 15 Jun 2017 22:57:04 -0700 (PDT) Received: from localhost.localdomain ([192.19.218.250]) by smtp.gmail.com with ESMTPSA id d16sm925428qke.5.2017.06.15.22.57.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jun 2017 22:57:03 -0700 (PDT) From: James Smart To: linux-scsi@vger.kernel.org Cc: James Smart , Dick Kennedy , James Smart Subject: [PATCH 02/11] Fix nvme_info sysfs output to be consistent Date: Thu, 15 Jun 2017 22:56:42 -0700 Message-Id: <20170616055651.9674-3-jsmart2021@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170616055651.9674-1-jsmart2021@gmail.com> References: <20170616055651.9674-1-jsmart2021@gmail.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Signed-off-by: James Smart Reviewed-by: Hannes Reinecke --- drivers/scsi/lpfc/lpfc_attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index 66269e342c7e..af22602b1058 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c @@ -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",