From patchwork Wed Nov 8 09:59:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= X-Patchwork-Id: 10048181 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 D9DCB60247 for ; Wed, 8 Nov 2017 09:59:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0AE82A54B for ; Wed, 8 Nov 2017 09:59:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B497D2A54D; Wed, 8 Nov 2017 09:59:40 +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=-6.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 3E1992A54B for ; Wed, 8 Nov 2017 09:59:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751641AbdKHJ7i (ORCPT ); Wed, 8 Nov 2017 04:59:38 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:49633 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751181AbdKHJ7S (ORCPT ); Wed, 8 Nov 2017 04:59:18 -0500 Received: by mail-wm0-f68.google.com with SMTP id b189so9095119wmd.4 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=e8OlGuQpNlOl4FIGPjeqfpLsKsb4I9XY3bMR1QwLzME8mHS0k6uX45bx9mxyLhipJb gwkRfu3qSW6IxNwdWC/IMQV7WO6bkxZ275fQGpCTj8Ie5ecf6XwDrDIwB/P1Sqj4ee0v gDRd3VadQ4yp2Wm2yRcyCuQAGeHvrC6uCVwcY5AXtytQ8W4J1QstmRX528pEi2wuzX7t dKdUcf4Kv3soBBpG3hUjcEXLYxIooiO0AZ4X1GVPn3a5Z83ya+7VMAcSAmKkSNNLDUKM 8csWwdlrtEvg2pQ0hW0lIMwmfYqqIb0/3SRV6HE5pfvf9keS60icuJttu4tpqN3ArG91 UDlA== X-Gm-Message-State: AJaThX4mJ4m/6L9JgJ/cpzo5MEF6lzTTvQ4NiZhKy4KZ2729axiY9hNz juvKVZR2UPt7qa1kXTQmU4PT8g== X-Google-Smtp-Source: ABhQp+SyHyM0SRLKynWvmU5lmEBioCEEyB4S9sCh32arHmr7lBMC81bMwTPqkxSUb4nGPTdAXiqWqA== 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 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Sagi Grimberg --- 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);