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

慕冬亮 mudongliangabcd at gmail.com
Mon May 24 06:50:47 EDT 2021


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?

--
My best regards to you.

     No System Is Safe!
     Dongliang Mu



More information about the Kernelnewbies mailing list