xen/vsprintf: Introduce %*pb[l] for printing bitmaps
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 6 Sep 2018 10:25:59 +0000 (10:25 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 22 Oct 2018 12:39:22 +0000 (13:39 +0100)
commit8cd9500958d818e3deabdd0d4164ea6fe1623d7c
tree90a98763c973f011b80aae539a7fcc1fcf504bfe
parent3528426cb93948e440da947963bd8163f186ef67
xen/vsprintf: Introduce %*pb[l] for printing bitmaps

The format identifier is consistent with Linux.  The code is adapted from
bitmap_scn{,list}printf() but cleaned up.

This change allows all callers to avoid needing a secondary buffer to render a
cpumask/nodemask into.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: <jbeulich@suse.com>
docs/misc/printk-formats.txt
xen/common/vsprintf.c