]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Solaris - fix a couple of warnings for message formatting
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 17 Nov 2024 18:47:24 +0000 (19:47 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 17 Nov 2024 18:47:24 +0000 (19:47 +0100)
coregrind/m_syswrap/syswrap-solaris.c

index 9d869d9b5f8e4642921c1487101d358b27e862de..104a809d3dc9c2095994cee74e1073bfcf290102 100644 (file)
@@ -2739,7 +2739,7 @@ PRE(sys_shmsys)
 #if defined(SOLARIS_SHM_NEW)
    case VKI_SHMADV:
       /* Libc: int shmadv(int shmid, uint_t cmd, uint_t *advice); */
-      PRINT("sys_shmsys ( %ld, %ld, %lu, %ld )",
+      PRINT("sys_shmsys ( %ld, %ld, %lu, %lu )",
             SARG1, SARG2, ARG3, ARG4);
       PRE_REG_READ4(long, SC2("shmsys", "shmadv"), int, opcode,
                     int, shmid, vki_uint_t, cmd, vki_uint_t *, advice);
@@ -6895,7 +6895,7 @@ PRE(sys_modctl)
 
       default:
          VG_(unimplemented)("Syswrap of the modctl call with command "
-                            "MODNVL_DEVLINKSYNC and op %ld.", ARG2);
+                            "MODNVL_DEVLINKSYNC and op %lu.", ARG2);
          /*NOTREACHED*/
          break;
       }