|
From: Philippe W. <phi...@so...> - 2020-08-15 15:20:11
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=24b247aec5397cad5f6cfcf885f118e90fea8735 commit 24b247aec5397cad5f6cfcf885f118e90fea8735 Author: Philippe Waroquiers <phi...@sk...> Date: Sat Aug 15 16:54:14 2020 +0200 Fix warning in syswrap sched_getattr print format. m_syswrap/syswrap-linux.c:3716:10: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'RegWord' {aka 'long unsigned int'} [-Wformat=] Diff: --- coregrind/m_syswrap/syswrap-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coregrind/m_syswrap/syswrap-linux.c b/coregrind/m_syswrap/syswrap-linux.c index dd41022108..0850487e90 100644 --- a/coregrind/m_syswrap/syswrap-linux.c +++ b/coregrind/m_syswrap/syswrap-linux.c @@ -3713,7 +3713,7 @@ PRE(sys_sched_setattr) PRE(sys_sched_getattr) { struct vki_sched_attr *attr; - PRINT("sched_getattr ( %ld, %#" FMT_REGWORD "x, %ld, %#" + PRINT("sched_getattr ( %ld, %#" FMT_REGWORD "x, %#" FMT_REGWORD "x, %#" FMT_REGWORD "x )", SARG1, ARG2, ARG3, ARG4 ); PRE_REG_READ4(long, "sched_getattr", vki_pid_t, pid, struct sched_attr *, p, |