On Mon, May 24, 2021 at 6:51 AM 慕冬亮 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