From patchwork Wed Jun 29 23:00:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Verma, Vishal L" X-Patchwork-Id: 9206319 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 449BE6075F for ; Wed, 29 Jun 2016 23:01:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A9CB28609 for ; Wed, 29 Jun 2016 23:01:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D51928618; Wed, 29 Jun 2016 23:01:05 +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=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B733C28609 for ; Wed, 29 Jun 2016 23:01:04 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id E07901A1E18; Wed, 29 Jun 2016 16:01:39 -0700 (PDT) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by ml01.01.org (Postfix) with ESMTP id B94371A1E1B for ; Wed, 29 Jun 2016 16:01:38 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 29 Jun 2016 16:01:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,549,1459839600"; d="scan'208";a="727060984" Received: from omniknight.lm.intel.com ([10.232.112.171]) by FMSMGA003.fm.intel.com with ESMTP; 29 Jun 2016 16:01:02 -0700 From: Vishal Verma To: Subject: [PATCH] acpi, nfit: print command names instead of numbers Date: Wed, 29 Jun 2016 17:00:30 -0600 Message-Id: <1467241230-15054-1-git-send-email-vishal.l.verma@intel.com> X-Mailer: git-send-email 2.5.5 X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Rafael J. Wysocki" MIME-Version: 1.0 Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP For the debug prints in acpi_nfit_ctl(), all the prints except the input buffer dump printed the command name. Make this also do the same for better readability. Cc: Dan Williams Cc: Rafael J. Wysocki Signed-off-by: Vishal Verma --- drivers/acpi/nfit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/nfit.c b/drivers/acpi/nfit.c index 2215fc8..d35e3be 100644 --- a/drivers/acpi/nfit.c +++ b/drivers/acpi/nfit.c @@ -247,8 +247,8 @@ static int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, } if (IS_ENABLED(CONFIG_ACPI_NFIT_DEBUG)) { - dev_dbg(dev, "%s:%s cmd: %d: func: %d input length: %d\n", - __func__, dimm_name, cmd, func, + dev_dbg(dev, "%s:%s cmd: %s: func: %d input length: %d\n", + __func__, dimm_name, cmd_name, func, in_buf.buffer.length); print_hex_dump_debug("nvdimm in ", DUMP_PREFIX_OFFSET, 4, 4, in_buf.buffer.pointer,