ieee802154: Replace BOOL_TO_STR() with str_true_false()
Subsystems (3)
PATCH 1/1 ieee802154: Replace BOOL_TO_STR() with str_true_false()
Replace the custom BOOL_TO_STR() macro with the str_true_false() helper function and remove the macro.
--- net/ieee802154/trace.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
net/ieee802154/trace.h +2 -4
@@ -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,
Signature · 1 line
2.47.0
Hi Thorsten,
[email protected] wrote on Sun, 20 Oct 2024 13:23:13 +0200:
Quoted 4 lines
Replace the custom
BOOL_TO_STR()macro with thestr_true_false()helper function and remove the macro.Signed-off-by Thorsten Blum <[email protected]>
Thanks,
Miquèl
Hello Thorsten Blum.
Quoted 4 lines · Thorsten Blum
Replace the custom
BOOL_TO_STR()macro with thestr_true_false()helper function and remove the macro.
Applied to wpan/wpan-next.git, thanks!
[1/1] ieee802154: Replace BOOL_TO_STR() with str_true_false()
https://git.kernel.org/wpan/wpan-next/c/299875256571
regards,
Stefan Schmidt
Hi Stefan,
Quoted 10 lines · Stefan Schmidt
Hello Thorsten Blum.
Quoted 4 lines · Thorsten Blum
Replace the custom
BOOL_TO_STR()macro with thestr_true_false()helper function and remove the macro.
Quoted 4 lines
Applied to wpan/wpan-next.git, thanks!
[1/1] ieee802154: Replace
BOOL_TO_STR()withstr_true_false()https://git.kernel.org/wpan/wpan-next/c/299875256571
I'm actually not sure this works after getting feedback on a similar patch [1].
I'd probably revert it to be safe.
Thanks,
Thorsten
Stefan Schmidt
maintainerHello.
Quoted 12 lines · Thorsten Blum
Hi Stefan,
Quoted 10 lines · Stefan Schmidt
Hello Thorsten Blum.
Quoted 4 lines · Thorsten Blum
Replace the custom
BOOL_TO_STR()macro with thestr_true_false()helper function and remove the macro.
Quoted 7 lines
Quoted 4 lines
Applied to wpan/wpan-next.git, thanks!
[1/1] ieee802154: Replace
BOOL_TO_STR()withstr_true_false()https://git.kernel.org/wpan/wpan-next/c/299875256571I'm actually not sure this works after getting feedback on a similar patch [1].
That is unfortunate.
Quoted 1 line
I'd probably revert it to be safe.
I removed it completely now, as it has not been part of any pull request yet.
regards
Stefan Schmidt