|
From: Mark W. <ma...@so...> - 2021-02-27 16:33:30
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=b8a76e8f438356268df61927485117fa41413ae6 commit b8a76e8f438356268df61927485117fa41413ae6 Author: Mark Wielaard <ma...@kl...> Date: Sat Feb 27 17:30:48 2021 +0100 syswrap-ppc64-linux.c: Use FMT_REGWORD and [S]ARG[1234] in PRINT macros. This prevents some print formatting related warnings. Diff: --- coregrind/m_syswrap/syswrap-ppc64-linux.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/coregrind/m_syswrap/syswrap-ppc64-linux.c b/coregrind/m_syswrap/syswrap-ppc64-linux.c index eea93a8787..c0e3f55491 100644 --- a/coregrind/m_syswrap/syswrap-ppc64-linux.c +++ b/coregrind/m_syswrap/syswrap-ppc64-linux.c @@ -470,7 +470,9 @@ PRE(sys_mmap) PRE(sys_fadvise64) { - PRINT("sys_fadvise64 ( %ld, %ld, %lu, %ld )", SARG1, SARG2, SARG3, SARG4); + PRINT("sys_fadvise64 ( %" FMT_REGWORD "d, %" FMT_REGWORD "d, " + "%" FMT_REGWORD "u, %" FMT_REGWORD "d )", + SARG1, SARG2, ARG3, SARG4); PRE_REG_READ4(long, "fadvise64", int, fd, vki_loff_t, offset, vki_size_t, len, int, advice); } @@ -518,7 +520,9 @@ PRE(sys_rt_sigreturn) // GET/SETREGSET for now. PRE(sys_ptrace) { - PRINT("sys_ptrace ( %ld, %ld, %#lx, %#lx )", ARG1,ARG2,ARG3,ARG4); + PRINT("sys_ptrace ( %" FMT_REGWORD "d, %" FMT_REGWORD "d, " + "%#" FMT_REGWORD "x, %#" FMT_REGWORD "x )", + SARG1, SARG2, ARG3, ARG4); PRE_REG_READ4(int, "ptrace", long, request, long, pid, long, addr, long, data); switch (ARG1) { |