Fix preadv/pwritev offset decoding on bigendian architectures
This partially reverts commit 7845a42b39e59e904d01e75e21f7bc7eb6462560.
* util.c (printllval): Remove align argument.
* defs.h (printllval): Update prototype.
(printllval_aligned, printllval_unaligned): Remove.
* file.c (sys_readahead, sys_truncate64, sys_ftruncate64, sys_fadvise64,
sys_fadvise64_64, sys_sync_file_range, sys_sync_file_range2,
sys_fallocate): Replace printllval_aligned call with printllval.
* io.c (sys_pread, sys_pwrite): Likewise.
(print_llu_from_low_high_val): New function.
(sys_preadv, sys_pwritev): Use it instead of printllval_unaligned.
diff --git a/defs.h b/defs.h
index 1a3b483..b92fa7b 100644
--- a/defs.h
+++ b/defs.h
@@ -663,11 +663,7 @@
# define LONG_LONG(a,b) \
((long long)((unsigned long long)(unsigned)(b) | ((unsigned long long)(a)<<32)))
#endif
-extern int printllval(struct tcb *, const char *, int, bool);
-#define printllval_aligned(tcp, fmt, arg) \
- printllval((tcp), (fmt), (arg), true)
-#define printllval_unaligned(tcp, fmt, arg) \
- printllval((tcp), (fmt), (arg), false)
+extern int printllval(struct tcb *, const char *, int);
extern void printxval(const struct xlat *, int, const char *);
extern int printargs(struct tcb *);