netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Jeremy Sowden <jeremy@azazel.net>
Cc: Netfilter Devel <netfilter-devel@vger.kernel.org>
Subject: Re: [PATCH libnftnl 1/1] bitwise: improve formatting of registers in bitwise dumps.
Date: Sun, 15 Nov 2020 12:16:54 +0100	[thread overview]
Message-ID: <20201115111654.GA24499@salvia> (raw)
In-Reply-To: <20201114173605.244338-2-jeremy@azazel.net>

On Sat, Nov 14, 2020 at 05:36:05PM +0000, Jeremy Sowden wrote:
> Registers are formatted as 'reg %u' everywhere apart from in bitwise
> expressions where they are formatted as 'reg=%u'.  Change bitwise to
> match.

LGTM.

But this also needs an update for the nftables tests too, right?

Thanks.

> Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
> ---
>  src/expr/bitwise.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/expr/bitwise.c b/src/expr/bitwise.c
> index 9ea2f662b3e6..ba379a84485e 100644
> --- a/src/expr/bitwise.c
> +++ b/src/expr/bitwise.c
> @@ -215,7 +215,7 @@ nftnl_expr_bitwise_snprintf_bool(char *buf, size_t size,
>  {
>  	int remain = size, offset = 0, ret;
>  
> -	ret = snprintf(buf, remain, "reg %u = (reg=%u & ",
> +	ret = snprintf(buf, remain, "reg %u = ( reg %u & ",
>  		       bitwise->dreg, bitwise->sreg);
>  	SNPRINTF_BUFFER_SIZE(ret, remain, offset);
>  
> -- 
> 2.29.2
> 

  reply	other threads:[~2020-11-15 11:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-14 17:36 [PATCH libnftnl 0/1] Bitwise dump format fix Jeremy Sowden
2020-11-14 17:36 ` [PATCH libnftnl 1/1] bitwise: improve formatting of registers in bitwise dumps Jeremy Sowden
2020-11-15 11:16   ` Pablo Neira Ayuso [this message]
2020-11-15 15:09     ` Jeremy Sowden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201115111654.GA24499@salvia \
    --to=pablo@netfilter.org \
    --cc=jeremy@azazel.net \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).