diff options
author | Arvind Sankar <[email protected]> | 2020-05-18 15:07:16 -0400 |
---|---|---|
committer | Ard Biesheuvel <[email protected]> | 2020-05-20 19:09:20 +0200 |
commit | 04b24409b42a9fcae2379a6ddcf9c827b9af7a45 (patch) | |
tree | dabfaad46777b92ff88edf4dfffcc840f4414a64 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 15c316bcbc23b777eae4e21f129526190aa20af1 (diff) |
efi/libstub: Use snprintf with %ls to convert the command line
Now we can use snprintf to do the UTF-16 to UTF-8 translation for the
command line.
Drop the special "zero" trick to handle an empty command line. This was
unnecessary even before this since with options_chars == 0,
efi_utf16_to_utf8 would not have accessed options at all. snprintf won't
access it either with a precision of 0.
Signed-off-by: Arvind Sankar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ard Biesheuvel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions