diff mbox series

[07/10] linux-user: Display sockaddr buffer as pointer

Message ID 20241005233343.503426-8-richard.henderson@linaro.org
State Superseded
Headers show
Series linux-user pre-PR | expand

Commit Message

Richard Henderson Oct. 5, 2024, 11:33 p.m. UTC
From: Philippe Mathieu-Daudé <philmd@linaro.org>

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>
---
 linux-user/strace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/linux-user/strace.c b/linux-user/strace.c
index dfdec58542..b72fcd515f 100644
--- a/linux-user/strace.c
+++ b/linux-user/strace.c
@@ -437,7 +437,7 @@  print_sockaddr(abi_ulong addr, abi_long addrlen, int last)
         }
         unlock_user(sa, addr, 0);
     } 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));
 }