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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 24, 2021 at 6:51 AM 慕冬亮 <mudongliangabcd@xxxxxxxxx> 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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux