util/hexdump: Inline g_string_append_printf "%02x"
commit10e4927bc4c5ad673e12c0731e6150050cf327de
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 12 Apr 2024 07:33:24 +0000 (12 00:33 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 5 Jun 2024 19:14:20 +0000 (5 12:14 -0700)
tree1514d4ca1a22694dc33594c1627241614d79ef48
parentc49d1c37d89a2ea994861600859b7dcd3ffa4ede
util/hexdump: Inline g_string_append_printf "%02x"

Trivial arithmetic can be used for emitting the nibbles,
rather than full-blown printf formatting.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240412073346.458116-6-richard.henderson@linaro.org>
util/hexdump.c