All of lore.kernel.org
 help / color / mirror / Atom feed
From: 慕冬亮 <mudongliangabcd@gmail.com>
To: kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: How to choose format specifier for boolean variables in Linux kernel?
Date: Mon, 24 May 2021 18:50:47 +0800	[thread overview]
Message-ID: <CAD-N9QWJYA4eN_+9-E5tz4UKF3mNJVtwTz3Fc2x8fUU+7AhhpQ@mail.gmail.com> (raw)

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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

             reply	other threads:[~2021-05-24 10:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-24 10:50 慕冬亮 [this message]
2021-05-24 14:22 ` How to choose format specifier for boolean variables in Linux kernel? Fox Chen
2021-05-24 14:27   ` 慕冬亮
2021-05-24 14:29     ` 慕冬亮
2021-05-24 14:38     ` Fox Chen
2021-05-24 14:39       ` 慕冬亮
2021-05-24 14:56 ` Aruna Hewapathirane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAD-N9QWJYA4eN_+9-E5tz4UKF3mNJVtwTz3Fc2x8fUU+7AhhpQ@mail.gmail.com \
    --to=mudongliangabcd@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.