Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5946939rwi; Sun, 23 Oct 2022 15:14:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5l1SO4F+kr7aP8+d1JvCp6reeTIFsb4/+NnrVGpI15BIBEGWl98Uk0uw1frXNIQEwntr8N X-Received: by 2002:a65:4508:0:b0:43c:e3c6:d1c2 with SMTP id n8-20020a654508000000b0043ce3c6d1c2mr25380728pgq.582.1666563283810; Sun, 23 Oct 2022 15:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666563283; cv=none; d=google.com; s=arc-20160816; b=A3Yi9N6O686oJAqY5XCrebk06mP1tqMMPjbJOR4cH7/4JkSt8vQc5jv8Um1jYUDomj UZ7uA1CCA0zOE/JCSlkcLjTTOB5hhprahOLrirQmotvY+NqjuNqSGN+eBxqAWq4GCs+d bV1jmlezbTlpYwUOr54x/0XQK7FnE+2JgX0o155Y7qoEPpHoagB65ABGgcqjPJ/NyePP cJu6SsjE9LgTmxGPRJvwEEb60ard8DZSCdAfBd0ClTL+jniSPfsPVIBQDtGhlXEhq59l 2OlvtVhp9yH5UrKIdIhPdzGWSe35a+iIWJIlIsq+b6eY8KvJ5wLK5vVgz0o6I0n8Y4CF EqLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=12hSpTlo9GK3v/aqOqEilAXf7PWrnUMftzxIi9+vcK8=; b=C1EnEP5Xw3TUyRYizmfZJX0MGYEfShDHcWMGbhxvGtdHe0EWI65lXrmgc3HRl+Lhul a4Rl/jmf910WeLSG6/kRHzfXKM6ZR8N+hmMWJ+GB2qXVWb36+ezWTZHWccNbJnYzulIa jQeTVol+m2lmWgj9iKeup92QrkKBVSBs0rTy8soRoSZZf40cXE/NSYSFKLfjLl/oTUsK fo9lLK/y1PAquK+ECBJP/uemyhtyVUptaL/IX4HzU5GyTQsN8kIhFqU8/MG5hueVvtQW iqSNZySJs0KzDemn1oFIPqC5dU4BJ05k1rQmEEeZgOMg6KIyvoNPVtTrGPVof77RHjhm 2tug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=2Wf+8XR5; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=NOPhB3rR; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a170902c94a00b00186605b7528si10002016pla.185.2022.10.23.15.14.16; Sun, 23 Oct 2022 15:14:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=2Wf+8XR5; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=NOPhB3rR; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229707AbiJWWLf (ORCPT + 99 others); Sun, 23 Oct 2022 18:11:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbiJWWLe (ORCPT ); Sun, 23 Oct 2022 18:11:34 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBE3C5F9B9 for ; Sun, 23 Oct 2022 15:11:32 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 98C0521FCE; Sun, 23 Oct 2022 22:11:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1666563091; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=12hSpTlo9GK3v/aqOqEilAXf7PWrnUMftzxIi9+vcK8=; b=2Wf+8XR5PBQwRf2JbTI/TK/+udGupsKuISlbq/B5o/CPy5KG93KgecrF8WcI6OaYWbNaRo lXcHHWDkYnq6CGDE/lwmTGvwenXq4iSW0uaV9F+MciBgbFIxUghBVHCGJQFPuCTsxopVJG niQLRGNtQ/9IDVxDn+863CTJCDVjBnA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1666563091; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=12hSpTlo9GK3v/aqOqEilAXf7PWrnUMftzxIi9+vcK8=; b=NOPhB3rRNHpslNHHiZ9ZrPmN0EIJ+N0qEslFnf+m7QeSg0E5gX3TAg1z1oPSnwbTCPtoZu yXrbw2pCE4wQ2KBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4E14613A3B; Sun, 23 Oct 2022 22:11:30 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8CfBABK8VWOtVgAAMHmgww (envelope-from ); Sun, 23 Oct 2022 22:11:30 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "David Disseldorp" , Chuck Lever III Cc: linux-nfs@vger.kernel.org, "David Disseldorp" Subject: Re: [PATCH] exportfs: use pr_debug for unreachable debug statements In-reply-to: <20221021122414.20555-1-ddiss@suse.de> References: <20221021122414.20555-1-ddiss@suse.de> Date: Mon, 24 Oct 2022 09:11:27 +1100 Message-id: <166656308707.12462.9861114416829680469@noble.neil.brown.name> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, 21 Oct 2022, David Disseldorp wrote: > expfs.c has a bunch of dprintk statements which are unusable due to: > #define dprintk(fmt, args...) do{}while(0) > Use pr_debug so that they can be enabled dynamically. > Also make some minor changes to the debug statements to fix some > incorrect types, and remove __func__ which can be handled by dynamic > debug separately. >=20 > Signed-off-by: David Disseldorp Reviewed-by: NeilBrown Thanks, NeilBrown > --- > fs/exportfs/expfs.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c > index c648a493faf23..3204bd33e4e8a 100644 > --- a/fs/exportfs/expfs.c > +++ b/fs/exportfs/expfs.c > @@ -18,7 +18,7 @@ > #include > #include > =20 > -#define dprintk(fmt, args...) do{}while(0) > +#define dprintk(fmt, args...) pr_debug(fmt, ##args) > =20 > =20 > static int get_name(const struct path *path, char *name, struct dentry *ch= ild); > @@ -132,8 +132,8 @@ static struct dentry *reconnect_one(struct vfsmount *mn= t, > inode_unlock(dentry->d_inode); > =20 > if (IS_ERR(parent)) { > - dprintk("%s: get_parent of %ld failed, err %d\n", > - __func__, dentry->d_inode->i_ino, PTR_ERR(parent)); > + dprintk("get_parent of %lu failed, err %ld\n", > + dentry->d_inode->i_ino, PTR_ERR(parent)); > return parent; > } > =20 > @@ -147,7 +147,7 @@ static struct dentry *reconnect_one(struct vfsmount *mn= t, > dprintk("%s: found name: %s\n", __func__, nbuf); > tmp =3D lookup_one_unlocked(mnt_user_ns(mnt), nbuf, parent, strlen(nbuf)); > if (IS_ERR(tmp)) { > - dprintk("%s: lookup failed: %d\n", __func__, PTR_ERR(tmp)); > + dprintk("lookup failed: %ld\n", PTR_ERR(tmp)); > err =3D PTR_ERR(tmp); > goto out_err; > } > --=20 > 2.35.3 >=20 >=20