Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4139273imw; Tue, 12 Jul 2022 02:35:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t94vE1OUtAAi7WhqvmWlXN7RlOxUqCQwKRupLyTPbY+w8nfF0Idu/fDgNYHSJfvHtxyp7D X-Received: by 2002:a05:6a00:2305:b0:528:c7a2:bd2d with SMTP id h5-20020a056a00230500b00528c7a2bd2dmr22591286pfh.77.1657618513116; Tue, 12 Jul 2022 02:35:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657618513; cv=none; d=google.com; s=arc-20160816; b=drcZIKJx9ZlZ8Lyh3ymHpO8DoNyUDuEtK+PDVB+TZlKO6cRPD6lMd7NySxMs8c/Wo9 yaRKkGKcl40lo0POOshlwUSDKMMG/sjun0/0Ae71GfMW0yNQ9nQx5ZPpqq7g5IOe02rO j8rwI0VZbLaf6YsOAJsQI2/09y70H3Rjnl6Mo5+agPAO+PTJOFcTCORpkNJ6YDGT2r/I FmpT0vfyLV3HsjmAXGxqudokIXnomq/gpWFNNNRphMsk1fkbjqj/3IBPt8hN/tyLt/Hx GbhKb2PJmxRNZVBWqBSFG/zUm63T40aqZcLFXfafiw8PL+rJ6Y4GeY+KzIphf3Ct04u5 edgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=LGLpkEdvWzYmsp8xa/e/yil0Pl5PGOMJa+DX7ILekrg=; b=rkc/bDSqsMNYIdT3hUyd0t8pqDViyYkaUkMeiGcjrvIY3aaWw2ZaOvIh7fSYHbEtOw n7zdgpUzGT6Z9itkErqyU0Aao7USlvl3RpHkiouLxxnQ8m/W9K+IGQxJBWUHkrCIjx8m smkTmv+7QBS9eevstrJujO0jJft8GKLFOpwrcRmRPH57UUhAqw8FJ29uMbTVx4FNb6kK /QkSpZi2pQLo/OYrBlPrf+vdwF1cJp9MEIYG6UTONeMHl41RGiDTQSZ1yK9ZcTNddMpd k5xjunvOLOciEwLW3J9u/HleMrxqCKXOtd7+koZ7pVcbfPmm/RCRlBWO3tZfrmZerItv fXQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m38-20020a635826000000b004197b8caca9si184183pgb.626.2022.07.12.02.35.00; Tue, 12 Jul 2022 02:35:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232686AbiGLIkR (ORCPT + 99 others); Tue, 12 Jul 2022 04:40:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232680AbiGLIkN (ORCPT ); Tue, 12 Jul 2022 04:40:13 -0400 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 80FD3A5E4D; Tue, 12 Jul 2022 01:40:08 -0700 (PDT) Date: Tue, 12 Jul 2022 10:40:04 +0200 From: Pablo Neira Ayuso To: Justin Stitt Cc: Jozsef Kadlecsik , Florian Westphal , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Nathan Chancellor , Nick Desaulniers , Tom Rix , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] netfilter: xt_TPROXY: fix clang -Wformat warnings: Message-ID: References: <20220707191745.840590-1-justinstitt@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org On Mon, Jul 11, 2022 at 12:44:05PM -0700, Justin Stitt wrote: > On Mon, Jul 11, 2022 at 2:04 AM Pablo Neira Ayuso wrote: > > > > On Thu, Jul 07, 2022 at 12:17:45PM -0700, Justin Stitt wrote: > > > diff --git a/net/netfilter/xt_TPROXY.c b/net/netfilter/xt_TPROXY.c > > > index 459d0696c91a..5d74abffc94f 100644 > > > --- a/net/netfilter/xt_TPROXY.c > > > +++ b/net/netfilter/xt_TPROXY.c > > > @@ -169,7 +169,7 @@ tproxy_tg6_v1(struct sk_buff *skb, const struct xt_action_param *par) > > > targets on the same rule yet */ > > > skb->mark = (skb->mark & ~tgi->mark_mask) ^ tgi->mark_value; > > > > > > - pr_debug("redirecting: proto %hhu %pI6:%hu -> %pI6:%hu, mark: %x\n", > > > + pr_debug("redirecting: proto %d %pI6:%hu -> %pI6:%hu, mark: %x\n", > > > tproto, &iph->saddr, ntohs(hp->source), > > > laddr, ntohs(lport), skb->mark); > > > > > > @@ -177,7 +177,7 @@ tproxy_tg6_v1(struct sk_buff *skb, const struct xt_action_param *par) > > > return NF_ACCEPT; > > > } > > > > > > - pr_debug("no socket, dropping: proto %hhu %pI6:%hu -> %pI6:%hu, mark: %x\n", > > > + pr_debug("no socket, dropping: proto %d %pI6:%hu -> %pI6:%hu, mark: %x\n", > > > tproto, &iph->saddr, ntohs(hp->source), > > > &iph->daddr, ntohs(hp->dest), skb->mark); > > > > Could you instead send a patch to remove these pr_debug calls? > > Do you mean all Instances of pr_debug in `xt_TPROXY.c` (of which there > are six) or just these two specific cases @ +169 and +177. Yes, remove all pr_debug instances, thanks.