Received: by 10.223.185.116 with SMTP id b49csp4477435wrg; Tue, 6 Mar 2018 17:06:03 -0800 (PST) X-Google-Smtp-Source: AG47ELshxAbtKBPkVkiSUC9QFzdQH1fKQlikorT0tggZYRFXgpZ9H/1jtCklcY0p5Jpjpg2tCzm0 X-Received: by 2002:a17:902:7445:: with SMTP id e5-v6mr18410340plt.204.1520384763700; Tue, 06 Mar 2018 17:06:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520384763; cv=none; d=google.com; s=arc-20160816; b=mxCOOooO81jSGH5oR47Im7nyGZYRqzwQgcgJkXTN9TWURQ5XdTT/SQo1gemtgJzEB7 GgIi5J6WHReO5MNtlyFR3z8Kxe+8vCnjWRC7BjFBka77fvUMEb+CcXQmJPoADtYdMHlS uDd1qumSPGfak4rYyeL5lBd6+9gVel07ubuVU7xy6hBH11fkLib+OMZNlsqW9NH6qe3r rQd/ctWk173zGmeTum36UjkDKZ7rgrj/5CYLmx5OQ8hWnK2Wk2o9DZiqK5N0ZHsehgY8 DoR57cZ0U8wTJthw5HpXagZtQJeSReK2qSmlHT2tCt8MTWAI8naagwlB3h5/l20xT16/ HaUg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=idADs0k8dvOQV/esPZ4FLU0srprl43jjCcN9hpoZmAE=; b=VK90VZkmvavCtcPGNFuYaZVpTWMuuuk4N6JiqiCzXaEEB8x8yNW4afaA5fyjTcqrgs QluZci3iBHfgGRGBgyhLoEViWrx7H0fJ1PVcyZuy6dg3G4lyslXyQAE9qJvPISuJDdl7 4d8uWmuJurywKYg0NN2exT5qI6G0+o2UrtDLU+NOzWFPv1uhEVRmTBhPz08dNh7snQXF ysiON1rD5o3NVdncmtm37Far2oUjpuBHURXFb+SvPyqPWLgkR/yzVJ9EbnFxm/aYnPnj ToQ8nUjtDvH6y6D2k0uO2UoShLOqTSPkyOE54s1tD7ACA+5aT+vDE1N058BoI/zQXpf+ vRHQ== 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 c66si12822901pfc.416.2018.03.06.17.05.49; Tue, 06 Mar 2018 17:06:03 -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; 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 S933292AbeCGA6o (ORCPT + 99 others); Tue, 6 Mar 2018 19:58:44 -0500 Received: from mga18.intel.com ([134.134.136.126]:53680 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932888AbeCGA6n (ORCPT ); Tue, 6 Mar 2018 19:58:43 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2018 16:58:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,433,1515484800"; d="scan'208";a="23093504" Received: from theros.lm.intel.com (HELO linux.intel.com) ([10.232.112.164]) by orsmga008.jf.intel.com with ESMTP; 06 Mar 2018 16:58:42 -0800 Date: Tue, 6 Mar 2018 17:58:42 -0700 From: Ross Zwisler To: Dan Williams Cc: Ross Zwisler , linux-nvdimm , Johannes Thumshirn , Linux Kernel Mailing List Subject: Re: [PATCH] libnvdimm: remove redundant __func__ in dev_dbg Message-ID: <20180307005842.GA30822@linux.intel.com> References: <152029856149.39547.12704338925946035297.stgit@dwillia2-desk3.amr.corp.intel.com> <20180306035434.GC15227@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 06, 2018 at 08:59:11AM -0800, Dan Williams wrote: > On Mon, Mar 5, 2018 at 7:54 PM, Ross Zwisler > wrote: > > On Mon, Mar 05, 2018 at 05:09:21PM -0800, Dan Williams wrote: > >> Dynamic debug can be instructed to add the function name to the debug > >> output using the +f switch, so there is no need for the libnvdimm > >> modules to do it again. If a user decides to add the +f switch for > >> libnvdimm's dynamic debug this results in double prints of the function > >> name. > >> > >> Reported-by: Johannes Thumshirn > >> Reported-by: Ross Zwisler > >> Signed-off-by: Dan Williams > >> --- > >> drivers/nvdimm/badrange.c | 3 +- > >> drivers/nvdimm/btt_devs.c | 21 ++++++++-------- > >> drivers/nvdimm/bus.c | 13 +++++----- > >> drivers/nvdimm/claim.c | 2 +- > >> drivers/nvdimm/core.c | 4 ++- > >> drivers/nvdimm/dax_devs.c | 5 ++-- > >> drivers/nvdimm/dimm_devs.c | 7 ++--- > >> drivers/nvdimm/label.c | 51 ++++++++++++++++++--------------------- > >> drivers/nvdimm/namespace_devs.c | 38 ++++++++++++----------------- > >> drivers/nvdimm/pfn_devs.c | 25 +++++++++---------- > >> drivers/nvdimm/pmem.c | 2 +- > >> 11 files changed, 77 insertions(+), 94 deletions(-) > >> > >> diff --git a/drivers/nvdimm/badrange.c b/drivers/nvdimm/badrange.c > >> index e068d72b4357..df17f1cd696d 100644 > >> --- a/drivers/nvdimm/badrange.c > >> +++ b/drivers/nvdimm/badrange.c > >> @@ -176,8 +176,7 @@ static void set_badblock(struct badblocks *bb, sector_t s, int num) > >> (u64) s * 512, (u64) num * 512); > >> /* this isn't an error as the hardware will still throw an exception */ > >> if (badblocks_set(bb, s, num, 1)) > >> - dev_info_once(bb->dev, "%s: failed for sector %llx\n", > >> - __func__, (u64) s); > >> + dev_info_once(bb->dev, "failed for sector %llx\n", (u64) s); > > > > I don't think you should remove this one. dev_info_once() is just a printk(), > > and doesn't inherit the +f flag from the dynamic debugging code. The __func__ > > here does add value. > > > > The rest of these look correct, though I think you missed one in each of > > nvdimm_map_release() > > This one is now fixed. > > > and validate_dimm(). (I made these changes as well, but > > you sent out your patch first. :) > > The validate_dimm() one is printing the callee function one level up > in the call chain, so it's fine as is. Sounds good. you can add: Reviewed-by: Ross Zwisler