]> git.ipfire.org Git - thirdparty/qemu.git/commit
backends/tpm: Use qemu_hexdump_line() to avoid sprintf()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 12 Apr 2024 07:33:30 +0000 (00:33 -0700)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 16 Feb 2025 13:25:07 +0000 (14:25 +0100)
commit1e0d4eb4ee7c909323bffc39bc348eb3174b426b
tree645355e963ed94f6c9de4c2e252886c4a8dbc616
parent495de0fd82d8bb2d7035f82d9869cfeb48de2f9e
backends/tpm: Use qemu_hexdump_line() to avoid sprintf()

sprintf() is deprecated on Darwin since macOS 13.0 / XCode 14.1.
Using qemu_hexdump_line() both fixes the deprecation warning and
simplifies the code base.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
[rth: Keep the linebreaks every 16 bytes]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240412073346.458116-12-richard.henderson@linaro.org>
[PMD: Rebased]
backends/tpm/tpm_util.c