提交 04d0608b 编写于 作者: G Geert Uytterhoeven 提交者: Jonathan Corbet

docs: core-api/printk-formats.rst: Clarify formatting {cpu,node}mask

Clarify how to pass the field width for bitmaps, and mention the helper
macros that are available to ease printing cpumask and nodemask.
Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20201110144121.3278667-1-geert+renesas@glider.beSigned-off-by: NJonathan Corbet <corbet@lwn.net>
上级 bfe7bf31
...@@ -531,7 +531,9 @@ For printing bitmap and its derivatives such as cpumask and nodemask, ...@@ -531,7 +531,9 @@ For printing bitmap and its derivatives such as cpumask and nodemask,
%*pb outputs the bitmap with field width as the number of bits and %*pbl %*pb outputs the bitmap with field width as the number of bits and %*pbl
output the bitmap as range list with field width as the number of bits. output the bitmap as range list with field width as the number of bits.
Passed by reference. The field width is passed by value, the bitmap is passed by reference.
Helper macros cpumask_pr_args() and nodemask_pr_args() are available to ease
printing cpumask and nodemask.
Flags bitfields such as page flags, gfp_flags Flags bitfields such as page flags, gfp_flags
--------------------------------------------- ---------------------------------------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册