x86_64: fix x32 personality support in print_llu_from_low_high_val
x86 is the only personality supported on x86_64
that has 32-bit syscall arguments.
* io.c (print_llu_from_low_high_val) [X86_64]: Fix
current_personality == 2 case.
diff --git a/io.c b/io.c
index 0cdc469..5ee967c 100644
--- a/io.c
+++ b/io.c
@@ -182,7 +182,11 @@
{
#if SIZEOF_LONG == SIZEOF_LONG_LONG
# if SUPPORTED_PERSONALITIES > 1
+# ifdef X86_64
+ if (current_personality != 1)
+# else
if (current_wordsize == sizeof(long))
+# endif
# endif
tprintf("%lu", (unsigned long) tcp->u_arg[arg]);
# if SUPPORTED_PERSONALITIES > 1