linux-user: Display sockaddr buffer as pointer

Rather than 'raw param', display as pointer to get
"NULL" instead of "0x00000000".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <20240807124306.52903-3-philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2024-08-07 14:43:03 +02:00 committed by Richard Henderson
parent 7db3a42ef6
commit 02d9169761

View File

@ -437,7 +437,7 @@ print_sockaddr(abi_ulong addr, abi_long addrlen, int last)
} }
unlock_user(sa, addr, 0); unlock_user(sa, addr, 0);
} else { } else {
print_raw_param("0x"TARGET_ABI_FMT_lx, addr, 0); print_pointer(addr, 0);
} }
qemu_log(TARGET_ABI_FMT_ld"%s", addrlen, get_comma(last)); qemu_log(TARGET_ABI_FMT_ld"%s", addrlen, get_comma(last));
} }