Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3120251imw; Mon, 11 Jul 2022 02:10:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sw+3AkbsORAjl3mHvEbOTUkmVTWRS5k8DyRgtF7OkYwILrS4seT78TEW/57EbBo+tJxNIG X-Received: by 2002:a65:4685:0:b0:416:ce1:8d9b with SMTP id h5-20020a654685000000b004160ce18d9bmr2563567pgr.529.1657530627466; Mon, 11 Jul 2022 02:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657530627; cv=none; d=google.com; s=arc-20160816; b=D2M06R4nixDPRa7mRpnj56lq42eKFu3nD3w/7FK0ohWNg8gMPFATLx/Cz6MkleCKSr XFAsxIwRnZ/lQ/EYnH8jiOWupOY4QvpPXn67O9sVs0uLD29Jv2uPlei77EmLXRfHZ7/w /JqRT+MaD72g7X09esH1efFDTflH7RxvWxVAXagVkcPHdadX7uuQNZaEUAP7kSDnMMel 2REVySraE7dCxc6NC6lmB/OlTBq/H0WR3LCxGlP2lgKgUQtO7ZA8IFRNjYbgcgOahntm fbY8U2DWF8T2aEXx1FbAW1LKWbzNzK4lDDo7v9qS1KYsDnMC8RigaweORyWPmpTxEALi dGRA== 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=e3JhmDiLAQskh3bWUYAqI9izqww1b3zYE6SZ03ZjXfs=; b=ZApczzAum3CbaoHLD0XdEIni+YtTb5be0412eie8RSzW6qPby+ijQ1wEqqIGSTQnIx jJC7+ZAXIAf2OAyfHrbpUyMx6/Uqh0YFbEW6QtXL6GMm4qwlq1u8+YIYNxEmnqGB2+x9 rHC237SAoxm/0OGSuPE7AszghilBJvSd5fRbu4nolPgqlk69I4bK+BnrQT5tTsnRKI6v Iz639Z31qVAXPNIjyWyKdk8Pzt1y1Ny7NhbucYOPk79yfx7Nrla3FgL3NJjnFuB8tEAs 9wYC5vqA7d9ehqTafY3pES8jCz6cyWHBZGlbq5yfW00fANIVDe6X+iDlQ3xNkyNr8SQ1 ozjg== 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 jj5-20020a170903048500b0016a5384072asi9166262plb.138.2022.07.11.02.10.15; Mon, 11 Jul 2022 02:10:27 -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 S229624AbiGKJES (ORCPT + 99 others); Mon, 11 Jul 2022 05:04:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbiGKJEQ (ORCPT ); Mon, 11 Jul 2022 05:04:16 -0400 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6126B12638; Mon, 11 Jul 2022 02:04:14 -0700 (PDT) Date: Mon, 11 Jul 2022 11:04:10 +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: <20220707191745.840590-1-justinstitt@google.com> 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 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? Thanks.