From: Stephen Hemminger <stephen@networkplumber.org>
To: netdev@vger.kernel.org
Cc: Stephen Hemminger <stephen@networkplumber.org>
Subject: [PATCH iproute2 v4 1/2] vxlan: use print_nll for gbp and gpe
Date: Fri, 26 May 2023 10:41:40 -0700 [thread overview]
Message-ID: <20230526174141.5972-2-stephen@networkplumber.org> (raw)
In-Reply-To: <20230526174141.5972-1-stephen@networkplumber.org>
The Gbp and Gpe are presence, not booleans so use print_null()
for them
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
ip/iplink_vxlan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ip/iplink_vxlan.c b/ip/iplink_vxlan.c
index c7e0e1c47606..cb6745c74507 100644
--- a/ip/iplink_vxlan.c
+++ b/ip/iplink_vxlan.c
@@ -650,9 +650,9 @@ static void vxlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
print_bool(PRINT_ANY, "remcsum_rx", "remcsumrx ", true);
if (tb[IFLA_VXLAN_GBP])
- print_bool(PRINT_ANY, "gbp", "gbp ", true);
+ print_null(PRINT_ANY, "gbp", "gbp ", NULL);
if (tb[IFLA_VXLAN_GPE])
- print_bool(PRINT_ANY, "gpe", "gpe ", true);
+ print_null(PRINT_ANY, "gpe", "gpe ", NULL);
}
static void vxlan_print_help(struct link_util *lu, int argc, char **argv,
--
2.39.2
next prev parent reply other threads:[~2023-05-26 17:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-26 17:41 [PATCH iproute2 v4 0/2] vxlan: option printing Stephen Hemminger
2023-05-26 17:41 ` Stephen Hemminger [this message]
2023-05-26 17:41 ` [PATCH iproute2 v4 2/2] vxlan: make option printing more consistent Stephen Hemminger
2023-05-26 19:42 ` Andrea Claudi
2023-05-26 22:17 ` Stephen Hemminger
2023-05-30 19:40 ` [PATCH iproute2 v4 0/2] vxlan: option printing patchwork-bot+netdevbpf
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=20230526174141.5972-2-stephen@networkplumber.org \
--to=stephen@networkplumber.org \
--cc=netdev@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).