summaryrefslogtreecommitdiff
path: root/tests/sockopt-sol_socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sockopt-sol_socket.c')
-rw-r--r--tests/sockopt-sol_socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/sockopt-sol_socket.c b/tests/sockopt-sol_socket.c
index 7aa58cb15..4907636fa 100644
--- a/tests/sockopt-sol_socket.c
+++ b/tests/sockopt-sol_socket.c
@@ -253,6 +253,8 @@ main(void)
printf("g%s", pfx_str);
if (rc < 0)
printf("%p", val);
+ else if (names[i].optsz)
+ print_quoted_hex(val, sizeof(*val) - 1);
else
print_quoted_memory(val, sizeof(*val) - 1);
printf(", [%d", (int) sizeof(*val) - 1);