diff options
author | Andy Shevchenko <[email protected]> | 2014-10-13 15:55:18 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-10-14 02:18:26 +0200 |
commit | 71dca95d5cf5ece6c1bee8e625e23c16025952c7 (patch) | |
tree | 098b1a20867ef6d1b38f549f162c160610b3cbff /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | c8250381c8272a9828fdd353171727b154fbd296 (diff) |
lib/vsprintf: add %*pE[achnops] format specifier
This allows user to print a given buffer as an escaped string. The
rules are applied according to an optional mix of flags provided by
additional format letters.
For example, if the given buffer is:
1b 62 20 5c 43 07 22 90 0d 5d
The result strings would be:
%*pE "\eb \C\a"\220\r]"
%*pEhp "\x1bb \C\x07"\x90\x0d]"
%*pEa "\e\142\040\\\103\a\042\220\r\135"
Please, read Documentation/printk-formats.txt and lib/string_helpers.c
kernel documentation to get further information.
[[email protected]: tidy up comment layout, per Joe]
Signed-off-by: Andy Shevchenko <[email protected]>
Suggested-by: Joe Perches <[email protected]>
Cc: "John W . Linville" <[email protected]>
Cc: Johannes Berg <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions