From: Philippe Waroquiers Date: Sat, 15 Aug 2020 14:54:14 +0000 (+0200) Subject: Fix warning in syswrap sched_getattr print format. X-Git-Tag: VALGRIND_3_17_0~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24b247aec5397cad5f6cfcf885f118e90fea8735;p=thirdparty%2Fvalgrind.git 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 --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,