diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2019-10-21 13:48:55 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2019-10-21 15:37:04 +0200 |
commit | bb10540e76e0c265a2988002117946a4b2e736af (patch) | |
tree | de88153c37ccba9f49316c5d0eefdba30f9c71ad /linux-user/strace.c | |
parent | d84fe1ede770444686fa49b83dbf00f5796bb9eb (diff) |
linux-user/strace: Improve bind() output
Tested-By: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20191021114857.20538-8-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/strace.c')
-rw-r--r-- | linux-user/strace.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/linux-user/strace.c b/linux-user/strace.c index 0ce2b658a5..cd92c77d33 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -1707,7 +1707,7 @@ print_socket(const struct syscallname *name, #endif -#if defined(TARGET_NR_socketcall) +#if defined(TARGET_NR_socketcall) || defined(TARGET_NR_bind) static void print_sockfd(abi_long sockfd, int last) { @@ -2054,6 +2054,19 @@ print_socketcall(const struct syscallname *name, } #endif +#if defined(TARGET_NR_bind) +static void +print_bind(const struct syscallname *name, + abi_long arg0, abi_long arg1, abi_long arg2, + abi_long arg3, abi_long arg4, abi_long arg5) +{ + print_syscall_prologue(name); + print_sockfd(arg0, 0); + print_sockaddr(arg1, arg2, 1); + print_syscall_epilogue(name); +} +#endif + #if defined(TARGET_NR_stat) || defined(TARGET_NR_stat64) || \ defined(TARGET_NR_lstat) || defined(TARGET_NR_lstat64) static void |