diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-12-09 11:57:06 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-12-14 08:26:54 +0100 |
commit | b61794d5fd1b06e91b1dcf7075fca46d2183c856 (patch) | |
tree | 036c4c188fe08d75f0da504f1b45feb9854807d9 /include | |
parent | 5b19f4e5e19d25080272692e9fb45b301017c6e6 (diff) | |
download | barebox-b61794d5fd1b06e91b1dcf7075fca46d2183c856.tar.gz barebox-b61794d5fd1b06e91b1dcf7075fca46d2183c856.tar.xz |
vsprintf: add support for printing raw buffers as hex (%*ph)
Import from Linux support for printing buffers as a hex string
with a certain separator. For larger buffers consider using
print_hex_dump(). Examples:
%*ph 00 01 02 ... 3f
%*phC 00:01:02: ... :3f
%*phD 00-01-02- ... -3f
%*phN 000102 ... 3f
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20211209105708.3517684-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions