Skip to content
Commit 2fcc0af1 authored by Beata Michalska's avatar Beata Michalska Committed by Kevin Brodsky
Browse files

lib/vsprintf: Add support for architectural capabilities



Introduce new printk's pointer format extension to support capabilities,
with one being denoted by specifying the 'l' length modifier alongside
the 'p' type character => "%lp". In addition to the raw capability
format, adding '#' flag will generate the simplified one, being slightly
more verbose. In both cases, the actual result is subject to
pointer hashing (address only) unless either 'x' qualifier or
no_hash_pointers command line parameter is being provided.
For more details see the docs, updated here as well.

While at it, add some testcases to validate new format alongside
checkpatchpl new warning, to raise the awareness of potential misuse.

Signed-off-by: Beata Michalska's avatarBeata Michalska <beata.michalska@arm.com>
Signed-off-by: Kevin Brodsky's avatarKevin Brodsky <kevin.brodsky@arm.com>
parent 605334bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment