linux-user: Correct print_sockaddr() format
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Sat, 5 Oct 2024 18:09:13 +0000 (11:09 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 8 Oct 2024 13:31:36 +0000 (06:31 -0700)
commit7db3a42ef6a375dd0004f550e7cf30abd1d6372f
tree56c2e8d52e36b9763dba0c78aa5cd466769a31ea
parent322bfaa2ea17c0f2391c03fbeed01acd9c5e6ae9
linux-user: Correct print_sockaddr() format

When the %addr argument can not be accessed, a double comma
is logged (the final qemu_log call prepend a comma).  Move
the comma from the final qemu_log to the preceeding switch
cases that had omitted it.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240807124306.52903-2-philmd@linaro.org>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
[rth: Move comma into the various switch cases.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/strace.c