Received: by 10.223.164.221 with SMTP id h29csp226088wrb; Fri, 3 Nov 2017 08:10:27 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Q5voMaurXqGGSQPlug5XA7E3XPbjEyayTvyQvJGl3sV23DBGlNbGz9e4Ynih4n7I1opbnA X-Received: by 10.98.32.12 with SMTP id g12mr8064937pfg.196.1509721827651; Fri, 03 Nov 2017 08:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509721827; cv=none; d=google.com; s=arc-20160816; b=zDhfrTXiMpF44ElLQRdNJZwOY1OH0afVoNoR+ghxWkWpqUrSADBRV7LGLbSMgOPCGD /6UWvB8eoPiAEZ70N0P2wihrQRsfoQ/F6QNYgJIgwp80074rfi/R5aN7sd2n/sMIQ5tn i52AxYSw1LphfvxHdJRt7aHQA7gt1KDTQwb9e4M22rFUSFyrnCc1HGBKlI1P1WdKPgPS 50eoEWGlrq/tvgOc7vfoFRh/i5w72x13BQwRC1Ib3cdBfFC/iqHHmnK2TfmlxzlybJGl 6YYtmNfkUhnIcxAr354SD4xtu/bH29xynXViaIn+lofod9ve2AsF4HYDkT8n0lrVoqeW wg5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=rc3/MUwKvqN92tpG3IeE/r5i45Oso8W1e3oRx0zVXVY=; b=APWZ1sipkAncN7lTjzh1/knCOaBE9C8P/bSInzH1UdM+0e2bbkFgsYkJSdFkcPCgAd 3S1rqI1AKQSbu4mx6bfkThARx3NUUqouk7vW4ME3bSx9fHtqDy6FTD+xUHtoCFne9+xN kJjHwa9aeKGDx1lsWGlkKm7jWk3HfS4kkq2ci17oq2gl+gGTBnFYhmkA+5KrsNuJOkh9 xP+blmt1sZtQuOLqIBuKtSxYs7AdxiUAuKmnDlQNhEbQsuCnw7uDJM8Vwmxsceldh3Up U/XnuzxQLaadjz41OUDXgXXcz0YrNha09YFw1u4608qk/8wEZJJc/PhKAHn/gSTFs3m0 nFQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 90si5055385plc.506.2017.11.03.08.10.13; Fri, 03 Nov 2017 08:10:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752299AbdKCPJe (ORCPT + 95 others); Fri, 3 Nov 2017 11:09:34 -0400 Received: from mga11.intel.com ([192.55.52.93]:31419 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750794AbdKCPJc (ORCPT ); Fri, 3 Nov 2017 11:09:32 -0400 Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Nov 2017 08:09:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,339,1505804400"; d="scan'208";a="145630389" Received: from unknown (HELO localhost.localdomain) ([10.232.112.44]) by orsmga004.jf.intel.com with ESMTP; 03 Nov 2017 08:09:31 -0700 Date: Fri, 3 Nov 2017 09:13:51 -0600 From: Keith Busch To: Christoph Hellwig Cc: Javier =?iso-8859-1?Q?Gonz=E1lez?= , sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Javier =?iso-8859-1?Q?Gonz=E1lez?= Subject: Re: [PATCH 3/3] nvme: fix eui_show() print format Message-ID: <20171103151351.GB11300@localhost.localdomain> References: <1509703370-20379-1-git-send-email-javier@cnexlabs.com> <1509703370-20379-4-git-send-email-javier@cnexlabs.com> <20171103125516.GC25186@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171103125516.GC25186@lst.de> User-Agent: Mutt/1.9.0 (2017-09-02) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 03, 2017 at 01:55:16PM +0100, Christoph Hellwig wrote: > On Fri, Nov 03, 2017 at 11:02:50AM +0100, Javier Gonz�lez wrote: > > Signed-off-by: Javier Gonz�lez > > --- > > drivers/nvme/host/core.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c > > index ae8ab0a1ef0d..f05c81774abf 100644 > > --- a/drivers/nvme/host/core.c > > +++ b/drivers/nvme/host/core.c > > @@ -2108,7 +2108,7 @@ static ssize_t eui_show(struct device *dev, struct device_attribute *attr, > > char *buf) > > { > > struct nvme_ns *ns = nvme_get_ns_from_dev(dev); > > - return sprintf(buf, "%8phd\n", ns->eui); > > + return sprintf(buf, "%8phD\n", ns->eui); > > } > > static DEVICE_ATTR(eui, S_IRUGO, eui_show, NULL); > > This looks correct. I wonder what the old code printed - does someone > have a device with an EUI-64 at hand to quickly cross check what we > did before? It just prints the same as the 'ph' format, which would look like this: 01 02 03 04 05 06 07 08 The change will make it look like this: 01-02-03-04-05-06-07-08 I think that was the original intention. Reviewed-by: Keith Busch From 1583049627830228896@xxx Fri Nov 03 12:56:11 +0000 2017 X-GM-THRID: 1583038813664229835 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread