Received: by 10.223.164.202 with SMTP id h10csp1300071wrb; Wed, 8 Nov 2017 02:01:07 -0800 (PST) X-Google-Smtp-Source: ABhQp+QnR5c1CRCtWh8H7bg8eV1QF3lbPb9tJGAVJPAsI23niwMkzHX8JPa55CEulEEQ99sSNZXJ X-Received: by 10.101.88.140 with SMTP id d12mr1836804pgu.166.1510135267126; Wed, 08 Nov 2017 02:01:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510135267; cv=none; d=google.com; s=arc-20160816; b=ggmfIJjQk9xoVDvo15whcn5n/KbMAgwaxwkzFKmpsS3xZENUq6NGvhHnTfYazeTAlP kQICO291UB7DQ+J4LPjYyleUK21sTjKkfOoDouSvf+OhoCKy7JVPhGfa9fi/6d6ZUEPU RyTQWK3euMyZ0b4d4gsyc79ultv6XzxMoBpKCBgGrX2IPXkvOr6Sywqc9w8tM79RDPnh T2el4GS0kLSPfsWOQALayy0/9TLjfhSxn4V76/4RM8OZ9mAA4ALvt+/fEHRSMoyC3pGq Fe70ts+dBzwtvMuLpxskchoA0kGGpiG+KVQVYceJkuxni6Lm/v4NbKDoGpnVSBOPdrrA wOdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=riHx+oFEfXX5u4sOB9kRmaXHzMVeA/KzcuTgqOvBobU=; b=il1L1hAZ7jprSQGgwBz7BM2ppMQbi39vCNdTRLbWmp0gAu312ufoYbN1Y3aBIamKLL PkoOo0oXajz+hblVoY2/E2kOVZqszslKuvFV4JPulA6dgx0wyXHY75esTL1NXDlnDr7o mAOWVd4A76NS9hPn5lc7jrwdIeXHStymw6KWcW9sKWHWN0vM14nLmy4Y9QoUDOvWGlm4 6YbLL7kZulOzsJMcJsE6UYXG+7PAxstSo6JDEu9U8ZSvKv+LVvIXYd6YCgAGgAYRdlNp YPIt/LfATWpKEBKczQiiNDFl9cDPfmkehr0t3bbh25c10s907xIqx7zJqhsd31QiVvWs iBQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=BCjhEgKi; 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 u5si3454291pgn.325.2017.11.08.02.00.54; Wed, 08 Nov 2017 02:01:07 -0800 (PST) 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; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=BCjhEgKi; 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 S1751749AbdKHJ7j (ORCPT + 91 others); Wed, 8 Nov 2017 04:59:39 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:46849 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957AbdKHJ7S (ORCPT ); Wed, 8 Nov 2017 04:59:18 -0500 Received: by mail-wm0-f67.google.com with SMTP id r68so9204614wmr.1 for ; Wed, 08 Nov 2017 01:59:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=riHx+oFEfXX5u4sOB9kRmaXHzMVeA/KzcuTgqOvBobU=; b=BCjhEgKit6ptvZbJJMC9X3pfa7qGFLBiDVAuS8qcwOn6RwIeTXKmh1IwG1dMiReOQy 8VlPMWMFBomW1OaB1TK4Rms6tKsmqPBpRnuC6WaqNWh2aYXQ58lJJK9PZzXqh9hj/vC0 j7gJZh79FqUlqPbbF/+jWwy+0e1G5k9nqYgIwYDKWc8RaZToVcNBneUewF96+keWaxsc 68uAmvuXlkymYzXadABFTPqk06vjQV05uH4UQXd58TRvjy+0ZOcb4igMx1WL4zbB1r5U kiM767O3JUXwwZmE0xMeNrUzhGziF7doiqu/h1hL7DcTAfm1jZuUwJeQCGvTed8otWui cVFw== 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:mime-version:content-transfer-encoding; bh=riHx+oFEfXX5u4sOB9kRmaXHzMVeA/KzcuTgqOvBobU=; b=NZA8bkNeaRg1/qFs//2n0F9zKtE2C0tlh9QR4mBF3bees2ATcLXXfFkZWKT5R43huA 38GFNUHxxbWh5req0fdCe5HO9ka7NX2TRsFpgII8J61/LeQIjunQR1r7ME3ljMSgCxlt WGDXjFQYngVuP9TQrPnv89Fnrj57Ezt3jDGO+EAdUL4OhELvjLmsUYwP6q4+c51Il7LC 8Iu9asz6Sh+vu4WZvmuNnvGEnYvM9Ex9KVEeKjxSLNxqsk2ugOrr7W1jsCxL6PmLneek kUHd74J6oPimYVgHlMvSPAbFPsmb3HMvpw6Tk3TfVEnB6QpudHIOPtpxXyZs9zCkwgst 5O/w== X-Gm-Message-State: AJaThX4/gT3b2sdN4X8ZzUUh/xyPKDiNU3Sg/pUtZeD/px4ki5bRhRYw ae0+Y4P4+j/prUsQsV0NEgp7RQ== X-Received: by 10.80.240.208 with SMTP id a16mr2808546edm.288.1510135157756; Wed, 08 Nov 2017 01:59:17 -0800 (PST) Received: from uHalley.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id h2sm3271666edc.89.2017.11.08.01.59.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Nov 2017 01:59:17 -0800 (PST) From: "=?UTF-8?q?Javier=20Gonz=C3=A1lez?=" X-Google-Original-From: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= To: hch@lst.de, sagi@grimberg.me, keith.busch@intel.com, joe@perches.com Cc: linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= , =?UTF-8?q?Javier=20Gonz=C3=A1lez?= Subject: [PATCH v2] nvme: fix eui_show() print format Date: Wed, 8 Nov 2017 10:59:04 +0100 Message-Id: <1510135144-1557-2-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510135144-1557-1-git-send-email-javier@cnexlabs.com> References: <1510135144-1557-1-git-send-email-javier@cnexlabs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Javier González Fix print formatting, but keep the original output to prevent user breakage as suggested by Joe Perches. Change since v1: - Maintain the original output format printing spaces instead of dashes Signed-off-by: Javier González Reviewed-by: Keith Busch --- 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 b3bc9fb39a6c..6c9d313c6f90 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -2109,7 +2109,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, "%8ph\n", ns->eui); } static DEVICE_ATTR(eui, S_IRUGO, eui_show, NULL); -- 2.7.4 From 1583504846825889851@xxx Wed Nov 08 13:31:42 +0000 2017 X-GM-THRID: 1583504846825889851 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread