From patchwork Fri Nov 3 10:02:50 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: 10039765 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 648066032D for ; Fri, 3 Nov 2017 10:03:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6751D2958A for ; Fri, 3 Nov 2017 10:03:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C60E2958E; Fri, 3 Nov 2017 10:03:31 +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=unavailable 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 0082B2958A for ; Fri, 3 Nov 2017 10:03:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752211AbdKCKDQ (ORCPT ); Fri, 3 Nov 2017 06:03:16 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:52656 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755922AbdKCKDB (ORCPT ); Fri, 3 Nov 2017 06:03:01 -0400 Received: by mail-wm0-f66.google.com with SMTP id t139so370733wmt.1 for ; Fri, 03 Nov 2017 03:03:00 -0700 (PDT) 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=c1gCJOPXb/gkXgKwY39mghY2JNFZhbFVK1Jc2aK/GFA=; b=LpuESY7++3qgjL9AvbAnyXniKNBTLgMUwbhVy4ij8BaADcxUZ55qwURb+3Jobyge2P aL8u1pdTPlZCB26Xj9LBRUz7wsyTfn+byfqwJwkgpMWcYHUJVV/Sabu5ZO7Un0Fj5W2o 8PYgnIdNZNzOz1/eRee839bCIx7hyZjgNBl4RWsR2x518u7mO3bRwIPqdmIjtl9p8DIO OFdJqRLBBFjRhMVqZ7achowQlKoEXxOAleWJcNw80m2trOnoAU5Fox8Zgf9b0pGX1FcA Q87DBKJoa7s/JzAXHHY/X2rAA3OeVa4vCY2eOdPEfnWpn+sT9PkLv7CqFmU2N/Oup/hV fe3g== 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=c1gCJOPXb/gkXgKwY39mghY2JNFZhbFVK1Jc2aK/GFA=; b=DnYr45uUSHuYXTlzFhpQy23jwEoKd37DRBkK7+9vcGetzBqGEKfcx5l4MGsOk6N8I4 l6lyet7884p3+ozxEONwtUYb+dG9P67kQFcVqnQlSroWZO376blcqTWsHdv7P/VEk1yb deHkDnW2r3Al55zx04hwLrLkGWWoSIDM6foqfxMJfj94foKKfoateo/0mpIR7dqE1Hy+ 2iXewfCZiCacrtOUeeh7G00B27yRwRu/HJnQ8zE5v095D2/k5WZODMXJZOIC3RjDj2/W hdVrRBmlxlshIHCXepWR8CZDroBf3jYHd6q7M3OmpgB14AqV1pjH6MfKl0owzaUNqrNF NUiw== X-Gm-Message-State: AMCzsaXaCmFGRrHwbC/prM4O6NLIE3gFB9wDz91wLBHVrCfC2/RGJOWc zpxSnivpRdo0pdDwLdvYZgMu9A== X-Google-Smtp-Source: ABhQp+RNMSngd05UkEDBcQUMJVcst/QHZQpi8WCyJpKnwX6KaUXAl1gSPXj1HP6rbyhXUBt+HBoEAQ== X-Received: by 10.80.226.8 with SMTP id n8mr8283506edl.177.1509703379883; Fri, 03 Nov 2017 03:02:59 -0700 (PDT) Received: from uHalley.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id 41sm4837530edz.66.2017.11.03.03.02.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 03:02:59 -0700 (PDT) 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 Cc: linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= Subject: [PATCH 3/3] nvme: fix eui_show() print format Date: Fri, 3 Nov 2017 11:02:50 +0100 Message-Id: <1509703370-20379-4-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509703370-20379-1-git-send-email-javier@cnexlabs.com> References: <1509703370-20379-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 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 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);