]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix warning in syswrap sched_getattr print format.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 15 Aug 2020 14:54:14 +0000 (16:54 +0200)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 15 Aug 2020 15:18:52 +0000 (17:18 +0200)
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=]

coregrind/m_syswrap/syswrap-linux.c

index dd41022108a0351dfbb645bdeffe7b8bc3da74b4..0850487e909781e47cb66c4cc6d54ed22c55a9aa 100644 (file)
@@ -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,