OSDN Git Service

dump: Replace tswapN() -> cpu_to_dumpN()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 16 Dec 2022 07:28:32 +0000 (08:28 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 27 Feb 2023 21:29:02 +0000 (22:29 +0100)
commitbb509d944129e9987d10d97a1dd4a3e099cd505d
tree75fa7fc906bed5b7ed7837d036ec0d2e63163796
parent7ae8e6c9a21bff7db376a8b1b135dffa0bb920d6
dump: Replace tswapN() -> cpu_to_dumpN()

All uses of tswap in that file are wrong, and should be using
cpu_to_dumpN, which correctly tests the endianness of the output.

Reported-by: Richard Henderson <richard.henderson@linaro.org>
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230225094903.53167-2-philmd@linaro.org>
dump/dump.c