How to choose format specifier for boolean variables in Linux kernel?

Aruna Hewapathirane aruna.hewapathirane at gmail.com
Mon May 24 10:56:15 EDT 2021


On Mon, May 24, 2021 at 6:51 AM 慕冬亮 <mudongliangabcd at gmail.com> wrote:

> Hi all,
>
> how do I choose format specifier for boolean variables in Linux
> kernel? For example,
>
> bool bup;
> pr_alert("%XXX", bup);
>
> What should "XXX" be in the Linux kernel?
>
>      Dongliang Mu
>

Please go through this. Hope it will help.

https://stackoverflow.com/questions/17307275/what-is-the-printf-format-specifier-for-bool

Aruna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20210524/df4b0fe5/attachment.html>


More information about the Kernelnewbies mailing list