Received: by 10.223.185.116 with SMTP id b49csp6067311wrg; Thu, 8 Mar 2018 01:00:07 -0800 (PST) X-Google-Smtp-Source: AG47ELtIPOjX7rnVA15D//L+Y2NUjaAJFJpx/I7LqUQzfyYvGv9JDW89eMhX3ast4KBpyNejbh9k X-Received: by 10.101.73.7 with SMTP id p7mr20316764pgs.250.1520499607785; Thu, 08 Mar 2018 01:00:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520499607; cv=none; d=google.com; s=arc-20160816; b=uUYJLsO1Dgm1fWRlvr/6s4T5S6ZzPr73L5jC0sEIW5S9u6wQtMII+LRX/jVPL+GZLl s1stRUQ97OX36JQXE+dw2lzeoSiC1jeSlu1sVmOWsrpYWv0lp2Xeh4N7OPRYJsWs66kR WMcc9IeSqD6QdgE6uQICV5hChjTPl/8SP9whW43eZRTs5Mi8CzbNMVMjx37h9lKsChCX GJ3KGuq5i38cElpjExBkVAAwokiMoP4eoxUd8iW8V9ZD5q1cgkjA+2p7MfRfj3EVLmES 3i7DHu5Y/8PxcwECXHkipRGdjzo5BBETgsiwas21KI5rbe5SUelkxuJwzi5EvZdgo8t0 eL9A== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=Zkdqc8htEaZ0EyS/sjixWtETRDYw5Iet2sbz8rUDppA=; b=gpQjqhecpT0bHDe04x1bZENivWpJ5D1LcjSj2nWR/NwWDYzgEba7u6fewPIPP0XdxL 4Urpzrr6VqvRr8MbUAjMY2Zw9tfin/+Va/DIaT0QwE9tx3CqKtUSzgr3CYaKNMfvYN2O PoOEQsY/QGktpbUjh6gG/1pB11zT3BQCJVZPu5F9aqy1KRQuDd1tYMMtRuxmB5/fRKVs SFYF61mud10VkHqVCyqj/ndfck+fGMoqiDmFNQ1OfnlUiaSABhC6//+nhVXYhjdmQ776 P1ViKJ3AOrr/Ww2IGXUNoMMWdlKFBP9VUlktNPsBKEumdJi2PslRRRddgr8oZsiG3YL2 fQbw== 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 f8si12616173pgs.667.2018.03.08.00.59.52; Thu, 08 Mar 2018 01:00:07 -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 S1755476AbeCHI6h (ORCPT + 99 others); Thu, 8 Mar 2018 03:58:37 -0500 Received: from mx2.suse.de ([195.135.220.15]:41750 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755333AbeCHI6g (ORCPT ); Thu, 8 Mar 2018 03:58:36 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DB724AF37; Thu, 8 Mar 2018 08:58:34 +0000 (UTC) Date: Thu, 8 Mar 2018 09:58:34 +0100 From: Johannes Thumshirn To: Dan Williams Cc: Ross Zwisler , linux-nvdimm , Linux Kernel Mailing List Subject: Re: [PATCH] libnvdimm: remove redundant __func__ in dev_dbg Message-ID: <20180308085834.3p5pikbyhasrkzwa@linux-x5ow.site> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170421 (1.8.2) 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: > >> 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. With the above fixed, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850