Received: by 10.223.185.116 with SMTP id b49csp4048287wrg; Tue, 6 Mar 2018 09:01:08 -0800 (PST) X-Google-Smtp-Source: AG47ELsR+r1LphV9S+PZYf/Duc5VvV13m+y9pg0tUFm9afeNJ8Xd6EnxPj4O81Zv25tzvIEC8JnI X-Received: by 10.98.74.140 with SMTP id c12mr19838468pfj.44.1520355668103; Tue, 06 Mar 2018 09:01:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520355668; cv=none; d=google.com; s=arc-20160816; b=rg9neP2dm9MIoyD0uj+fiyDrlc/WligH9jcOTknLHqLu8N1kXpz8jcuQP1okoF4G5Y csR2N86Q/xs+4E/thrDCshOk9tkT1NS+CY9244jiJVT1HzO+8kZYOdpLQY0zPZUiw/Zg TSwX05XtdeYFCjFsRAPiVMfLZQYnpl8Pon6rEC0jFeCmyoWWUqhYNwrzCxD3ooPW05Ca XajjxLsFQTdkRt10umyy+PqV9jgVombBkTw+0oz8iR+ApnuPdxPAohUwo41+zoY/nmlU yuRgi6+ukX2aCqza606BbwN0bjMCk7YIrNrUDxSfjyTQZ84WzQT0zU0vN8bv91nEJLrP f2nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=hR57AR/vp6btRD508fEKqewrO5/O9jelmaIGwA2TMPc=; b=fvRJGVWFpXJX+AclX5WImODuxVsHDhFsCss0t0+ivCObkiGz7Uz43kv/FdS6fxu3S3 gZoWTKq/ruYtOD30CwoQNl9LMPnG7Q3nZ4xxlg/1I2a/ZVC/8nPzr2UTHi3QDHDLbYt6 0Fp6jg1cbHHv+iMgN85us7NzwCcSa41Ew8D4epv4pUWk0Bl+R50iCFBvgTvMktwfxz+A Mcv64MZwnvYa+1OQ0L8bVkiFhVoiQRyYIEXDnOVj5E2nmvq0L/HwvJN7EO2CtpSbslo4 aEn7pal5OEfdU3a87a8r7fR7hbzhgUt2WY1+aazkRQUx3rBlk7RD0VT8DjDb19vmwfkJ d/8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=L0s78s+E; 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 o12si10110201pgr.99.2018.03.06.09.00.46; Tue, 06 Mar 2018 09:01:08 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=L0s78s+E; 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 S1753947AbeCFQ7e (ORCPT + 99 others); Tue, 6 Mar 2018 11:59:34 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:36454 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753897AbeCFQ7M (ORCPT ); Tue, 6 Mar 2018 11:59:12 -0500 Received: by mail-oi0-f68.google.com with SMTP id u73so174895oie.3 for ; Tue, 06 Mar 2018 08:59:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hR57AR/vp6btRD508fEKqewrO5/O9jelmaIGwA2TMPc=; b=L0s78s+E7FOJpuumdTAuPizAb/E42lzssyOsAPnRyIDz29qWeLrpN7EJAo3+Z8O6tK RmVofQFT9PuXDpbR3cUDRInPIHP1VS2GuF7oz0HSJ2Dkek+ybcSbq3u/F3qL6p1p3Vzr 0DI6MpG7hSGlhOcRSEMDR8hUTbDyliChLDGLR/vOsLmMsvdY5yscB7mzWey9d1tmK5Gh Ts6L4bzsmJTTFke7h9mjroEQ1DR4AEENrLtT3UJIFuZZaw0bS3q/9vBJaa73Ju4bZ7MU hUDkWz/g/Yx52bCN+IJNG+1nvA8Uez7zu943R52hZ5pREHX7K0o4hYbld1w4TwAX3nvU SOIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hR57AR/vp6btRD508fEKqewrO5/O9jelmaIGwA2TMPc=; b=L7s/5Z7wmagiUnPMb9FrZvL4YkNdNPH8Fl8Scx18+VQSsOi5Iu5J7TJGNM0NvAnIzV bp8V2ORMw3FNOXxXB7ZnyqPkNcIBONNtdo2ARK2AnVcUwF/eiOtdtK2b66rBbqARR0tj nbGSl7NwRe2VFqXIChg4kxNpKhbMZk8hObVEYrQdBX+Ep/vusfIzOyR5n4ae3OdKfDpA CMLpAHpPZXa0xLoropG1/TRRtOGgEavh5ewEf6a+58pmTAJpRXsKEUMv2DuawFE2jszg CF0u70flN/K8Y5IBUwf9QYVHZGdEEDA0/ZL27dSUv9kcuDECSzdqkgmnmAbZTyIc/vtC Kp2w== X-Gm-Message-State: AElRT7H2E1g/ThQ7hA+Hy7ZR1XbF0FzG/eCjs4WnRVnsfA4DrzNWy0yl y2VA+RqWsngc3/qw9V9Y9juIICcUkmAcehqiWCr0fQ== X-Received: by 10.202.243.135 with SMTP id r129mr12485320oih.72.1520355551957; Tue, 06 Mar 2018 08:59:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.81.137 with HTTP; Tue, 6 Mar 2018 08:59:11 -0800 (PST) In-Reply-To: <20180306035434.GC15227@linux.intel.com> References: <152029856149.39547.12704338925946035297.stgit@dwillia2-desk3.amr.corp.intel.com> <20180306035434.GC15227@linux.intel.com> From: Dan Williams Date: Tue, 6 Mar 2018 08:59:11 -0800 Message-ID: Subject: Re: [PATCH] libnvdimm: remove redundant __func__ in dev_dbg To: Ross Zwisler Cc: linux-nvdimm , Johannes Thumshirn , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.