]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
docs: core-api/printk-formats.rst: Clarify formatting {cpu,node}mask
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 10 Nov 2020 14:41:21 +0000 (15:41 +0100)
committerJonathan Corbet <corbet@lwn.net>
Fri, 13 Nov 2020 22:03:20 +0000 (15:03 -0700)
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: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20201110144121.3278667-1-geert+renesas@glider.be
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/core-api/printk-formats.rst

index 6d26c5c6ac485cec272e78ae400b7a24dd2ccf4d..160e710d992f3a363d8f39314b0a04b9d658d07f 100644 (file)
@@ -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
 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
 ---------------------------------------------