Re: [PATCH V7 net-next 1/7] net: hibmcge: Add debugfs supported in this module
From: Jijie Shao
Date: Sun Dec 15 2024 - 22:21:38 EST
on 2024/12/16 5:44, Jakub Kicinski wrote:
On Thu, 12 Dec 2024 22:23:28 +0800 Jijie Shao wrote:
+#define str_true_false(state) ((state) ? "true" : "false")
Didn't notice until I started applying this..
str_true_false() is an existing helper:
https://elixir.bootlin.com/linux/v6.13-rc2/source/include/linux/string_choices.h#L68
It seems that this header file provides a lot of useful helpers, I will send v8 to use them.
Thanks,
Jijie Shao