Skip to content

Commit

Permalink
docs: core-api/printk-formats.rst: Clarify formatting {cpu,node}mask
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and Jonathan Corbet committed Nov 13, 2020
1 parent bfe7bf3 commit 04d0608
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Documentation/core-api/printk-formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------------------------------------------
Expand Down

0 comments on commit 04d0608

Please sign in to comment.