[PATCH v2 4/6] doc: printf() codes: Add bitmap format specifier
lukas.funke-oss at weidmueller.com
lukas.funke-oss at weidmueller.com
Tue Dec 12 09:52:34 CET 2023
From: Lukas Funke <lukas.funke at weidmueller.com>
Add '%*pb[l]' printf format specifier as descriped in [1].
[1] https://www.kernel.org/doc/Documentation/printk-formats.txt
Signed-off-by: Lukas Funke <lukas.funke at weidmueller.com>
---
(no changes since v1)
doc/develop/printf.rst | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/doc/develop/printf.rst b/doc/develop/printf.rst
index 99d05061b1..c3537b1796 100644
--- a/doc/develop/printf.rst
+++ b/doc/develop/printf.rst
@@ -165,6 +165,12 @@ Pointers
* phys_size_t
* resource_size_t
+%*pb, %*pbl
+ prints bitmap and its derivatives such as cpumask and nodemask.
+ '%*pb' outputs the bitmap with field width as the number of bits
+ and '%*pbl' outputs the bitmap as range list with field width as
+ the number of bits.
+
%pD
prints a UEFI device path
--
2.30.2
More information about the U-Boot
mailing list