<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 24, 2021 at 6:51 AM 慕冬亮 <<a href="mailto:mudongliangabcd@gmail.com">mudongliangabcd@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
how do I choose format specifier for boolean variables in Linux<br>
kernel? For example,<br>
<br>
bool bup;<br>
pr_alert("%XXX", bup);<br>
<br>
What should "XXX" be in the Linux kernel?<br>
<br>
Dongliang Mu<br></blockquote><div><br></div><div>Please go through this. Hope it will help. <br><br></div><div><a href="https://stackoverflow.com/questions/17307275/what-is-the-printf-format-specifier-for-bool">https://stackoverflow.com/questions/17307275/what-is-the-printf-format-specifier-for-bool</a> <br></div><div><br></div><div>Aruna<br></div></div></div>