if (entering(tcp)) {
int argn;
printfd(tcp, tcp->u_arg[0]);
-#if defined ARM || defined POWERPC
- argn = printllval(tcp, ", %lld, ", 2);
-#else
argn = printllval(tcp, ", %lld, ", 1);
-#endif
argn = printllval(tcp, "%lld, ", argn);
-#if defined ARM || defined POWERPC
+#if defined ARM || defined AARCH64 || defined POWERPC
printxval(advise, tcp->u_arg[1], "POSIX_FADV_???");
#else
printxval(advise, tcp->u_arg[argn], "POSIX_FADV_???");
tprintf(format, tcp->u_arg[arg_no]);
arg_no++;
} else {
-# if defined(POWERPC64)
- /* Align arg_no to next even number */
+# if defined(AARCH64) || defined(POWERPC64)
+ /* Align arg_no to the next even number. */
arg_no = (arg_no + 1) & 0xe;
# endif
tprintf(format, LONG_LONG(tcp->u_arg[arg_no], tcp->u_arg[arg_no + 1]));
# if SIZEOF_LONG > 4
# error BUG: must not combine two args for long long on this arch
# endif
+#if defined(ARM) || defined(POWERPC)
+ /* Align arg_no to the next even number. */
+ arg_no = (arg_no + 1) & 0xe;
+#endif
tprintf(format, LONG_LONG(tcp->u_arg[arg_no], tcp->u_arg[arg_no + 1]));
arg_no += 2;
#endif