From: Thorsten Blum <thorsten.blum@linux.dev>
To: Alexander Aring <alex.aring@gmail.com>,
Stefan Schmidt <stefan@datenfreihafen.org>,
Miquel Raynal <miquel.raynal@bootlin.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: Thorsten Blum <thorsten.blum@linux.dev>,
linux-wpan@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH net-next] ieee802154: Replace BOOL_TO_STR() with str_true_false()
Date: Sun, 20 Oct 2024 13:23:13 +0200 [thread overview]
Message-ID: <20241020112313.53174-2-thorsten.blum@linux.dev> (raw)
Replace the custom BOOL_TO_STR() macro with the str_true_false() helper
function and remove the macro.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
net/ieee802154/trace.h | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/net/ieee802154/trace.h b/net/ieee802154/trace.h
index 591ce0a16fc0..284b63a0834e 100644
--- a/net/ieee802154/trace.h
+++ b/net/ieee802154/trace.h
@@ -35,8 +35,6 @@
#define WPAN_CCA_PR_FMT "cca_mode: %d, cca_opt: %d"
#define WPAN_CCA_PR_ARG __entry->cca_mode, __entry->cca_opt
-#define BOOL_TO_STR(bo) (bo) ? "true" : "false"
-
/*************************************************************
* rdev->ops traces *
*************************************************************/
@@ -273,7 +271,7 @@ TRACE_EVENT(802154_rdev_set_lbt_mode,
),
TP_printk(WPAN_PHY_PR_FMT ", " WPAN_DEV_PR_FMT
", lbt mode: %s", WPAN_PHY_PR_ARG,
- WPAN_DEV_PR_ARG, BOOL_TO_STR(__entry->mode))
+ WPAN_DEV_PR_ARG, str_true_false(__entry->mode))
);
TRACE_EVENT(802154_rdev_set_ackreq_default,
@@ -292,7 +290,7 @@ TRACE_EVENT(802154_rdev_set_ackreq_default,
),
TP_printk(WPAN_PHY_PR_FMT ", " WPAN_DEV_PR_FMT
", ackreq default: %s", WPAN_PHY_PR_ARG,
- WPAN_DEV_PR_ARG, BOOL_TO_STR(__entry->ackreq))
+ WPAN_DEV_PR_ARG, str_true_false(__entry->ackreq))
);
TRACE_EVENT(802154_rdev_trigger_scan,
--
2.47.0
next reply other threads:[~2024-10-20 11:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-20 11:23 Thorsten Blum [this message]
2024-10-21 7:27 ` [PATCH net-next] ieee802154: Replace BOOL_TO_STR() with str_true_false() Miquel Raynal
2024-10-28 15:57 ` Stefan Schmidt
2024-10-28 16:42 ` Thorsten Blum
2024-10-28 20:32 ` Stefan Schmidt
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=20241020112313.53174-2-thorsten.blum@linux.dev \
--to=thorsten.blum@linux.dev \
--cc=alex.aring@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wpan@vger.kernel.org \
--cc=miquel.raynal@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=stefan@datenfreihafen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.