]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix printf format inconsistencies as pointed out by gcc -Wformat-signedness.
authorFlorian Krohm <florian@eich-krohm.de>
Thu, 6 Aug 2015 09:00:48 +0000 (09:00 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Thu, 6 Aug 2015 09:00:48 +0000 (09:00 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15501

14 files changed:
coregrind/m_sigframe/sigframe-amd64-darwin.c
coregrind/m_sigframe/sigframe-amd64-linux.c
coregrind/m_sigframe/sigframe-arm-linux.c
coregrind/m_sigframe/sigframe-arm64-linux.c
coregrind/m_sigframe/sigframe-common.c
coregrind/m_sigframe/sigframe-mips32-linux.c
coregrind/m_sigframe/sigframe-mips64-linux.c
coregrind/m_sigframe/sigframe-ppc32-linux.c
coregrind/m_sigframe/sigframe-ppc64-linux.c
coregrind/m_sigframe/sigframe-s390x-linux.c
coregrind/m_sigframe/sigframe-solaris.c
coregrind/m_sigframe/sigframe-tilegx-linux.c
coregrind/m_sigframe/sigframe-x86-darwin.c
coregrind/m_sigframe/sigframe-x86-linux.c

index 803526b6cbbabe22ad564a18ce7e4a913c2916ee..f42641086e8251082b2013e84f00848895160b72 100644 (file)
@@ -222,7 +222,7 @@ void VG_(sigframe_create) ( ThreadId tid,
 
    if (VG_(clo_trace_signals))
       VG_(message)(Vg_DebugMsg,
-                   "sigframe_create (thread %d): "
+                   "sigframe_create (thread %u): "
                    "next RIP=%#lx, next RSP=%#lx\n",
                    tid, (Addr)handler, (Addr)frame );
 }
index 761f9b428e6f03d5acc63c80af995dbe9e3f3357..adb86bca3f39d11a9cdfddf1d275625b25da4e26 100644 (file)
@@ -494,7 +494,7 @@ void VG_(sigframe_create)( ThreadId tid,
    if (0)
       VG_(printf)("pushed signal frame; %%RSP now = %#lx, "
                   "next %%RIP = %#llx, status=%d\n",
-                 rsp, tst->arch.vex.guest_RIP, tst->status);
+                 rsp, tst->arch.vex.guest_RIP, (Int)tst->status);
 }
 
 
@@ -510,7 +510,7 @@ Bool restore_vg_sigframe ( ThreadState *tst,
 {
    if (frame->magicPI != 0x31415927 ||
        frame->magicE  != 0x27182818) {
-      VG_(message)(Vg_UserMsg, "Thread %d return signal frame "
+      VG_(message)(Vg_UserMsg, "Thread %u return signal frame "
                                "corrupted.  Killing process.\n",
                   tst->tid);
       VG_(set_default_handler)(VKI_SIGSEGV);
@@ -594,7 +594,7 @@ void VG_(sigframe_destroy)( ThreadId tid, Bool isRT )
    if (VG_(clo_trace_signals))
       VG_(message)(
          Vg_DebugMsg, 
-         "VG_(signal_return) (thread %d): isRT=%d valid magic; RIP=%#llx\n",
+         "VG_(signal_return) (thread %u): isRT=%d valid magic; RIP=%#llx\n",
          tid, isRT, tst->arch.vex.guest_RIP);
 
    /* tell the tools */
index 01dbfbe6b51c60f1586d843cfd8f2913d88924ad..07ac9382673382e52a055b4598b1fb7ef3b58398 100644 (file)
@@ -310,7 +310,7 @@ void VG_(sigframe_destroy)( ThreadId tid, Bool isRT )
              
    if (VG_(clo_trace_signals))
       VG_(message)(Vg_DebugMsg,
-                   "vg_pop_signal_frame (thread %d): "
+                   "vg_pop_signal_frame (thread %u): "
                    "isRT=%d valid magic; PC=%#x\n",
                    tid, has_siginfo, tst->arch.vex.guest_R15T);
 
index c248585ee595f22a317fa4fcf519a2d97e7a2254..0d0cc2a7e69e6bfb5b717f968f82d58a2ab478d3 100644 (file)
@@ -283,7 +283,7 @@ void VG_(sigframe_destroy)( ThreadId tid, Bool isRT )
              
    if (VG_(clo_trace_signals))
       VG_(message)(Vg_DebugMsg,
-                   "vg_pop_signal_frame (thread %d): "
+                   "vg_pop_signal_frame (thread %u): "
                    "isRT=%d valid magic; PC=%#llx\n",
                    tid, has_siginfo, tst->arch.vex.guest_PC);
 
index 97419d6d6a4733b8aa8342149b32e4f0ed9a32b9..5e5eaf69d5aeb00b6df5c958e920e2dd5c4485a5 100644 (file)
@@ -83,7 +83,7 @@ Bool ML_(sf_maybe_extend_stack) ( const ThreadState *tst, Addr addr,
 
    if (stackseg == NULL || !stackseg->hasR || !stackseg->hasW) {
       VG_(umsg)("Can't extend stack to %#lx during signal delivery for "
-                "thread %d:\n", addr, tid);
+                "thread %u:\n", addr, tid);
       if (stackseg == NULL)
          VG_(umsg)("  no stack segment\n");
       else
index 1e4f9ac89858bcb5bc01aad9939c22014654efca..d6e76b1d6a70c92a5044e2f6c44da65690c364b0 100644 (file)
@@ -339,7 +339,7 @@ void VG_(sigframe_destroy)( ThreadId tid, Bool isRT )
   VG_TRACK(die_mem_stack_signal, sp, frame_size);
   if (VG_(clo_trace_signals))
     VG_(message)( Vg_DebugMsg, 
-         "VG_(signal_return) (thread %d): isRT=%d valid magic; EIP=%#x\n",
+         "VG_(signal_return) (thread %u): isRT=%d valid magic; EIP=%#x\n",
          tid, isRT, tst->arch.vex.guest_PC);
   /* tell the tools */
   VG_TRACK( post_deliver_signal, tid, sigNo );
index c1f26370bf510819cb25be2dac8651e690532839..04e0733806221e898c67abca7d557ccb7c4d9193 100644 (file)
@@ -266,7 +266,7 @@ void VG_(sigframe_destroy) ( ThreadId tid, Bool isRT )
    VG_TRACK(die_mem_stack_signal, sp, frame_size);
    if (VG_(clo_trace_signals))
       VG_(message)(Vg_DebugMsg,
-         "VG_(signal_return) (thread %d): isRT=%d valid magic; EIP=%#llx\n",
+         "VG_(signal_return) (thread %u): isRT=%d valid magic; EIP=%#llx\n",
          tid, isRT, tst->arch.vex.guest_PC);
    /* tell the tools */
    VG_TRACK( post_deliver_signal, tid, sigNo );
index 504480e705a80f382e797d975c0aee6407989610..881234ab8e15d3eae0733c822dc4d525452fa99c 100644 (file)
@@ -752,7 +752,7 @@ void VG_(sigframe_create)( ThreadId tid,
    if (0)
       VG_(printf)("pushed signal frame; %%R1 now = %#lx, "
                   "next %%CIA = %#x, status=%d\n",
-                 sp, tst->arch.vex.guest_CIA, tst->status);
+                 sp, tst->arch.vex.guest_CIA, (Int)tst->status);
 }
 
 
@@ -901,7 +901,7 @@ void VG_(sigframe_destroy)( ThreadId tid, Bool isRT )
 
    if (VG_(clo_trace_signals))
       VG_(message)(Vg_DebugMsg,
-                   "vg_pop_signal_frame (thread %d): "
+                   "vg_pop_signal_frame (thread %u): "
                    "isRT=%d valid magic; EIP=%#x\n",
                    tid, has_siginfo, tst->arch.vex.guest_CIA);
 
@@ -928,7 +928,7 @@ void VG_(sigframe_destroy)( ThreadId tid, Bool isRT )
 //..    if (VG_(clo_trace_signals))
 //..       VG_(message)(
 //..          Vg_DebugMsg, 
-//..          "VG_(signal_return) (thread %d): isRT=%d valid magic; EIP=%p", 
+//..          "VG_(signal_return) (thread %u): isRT=%d valid magic; EIP=%p", 
 //..          tid, isRT, tst->arch.vex.guest_EIP);
 //.. 
 //..    /* tell the tools */
index 5a7fa897c53d2bb7101bcc76e18211cd38545157..a58c2d4ee40986048eaef653fe15385289708828 100644 (file)
@@ -279,7 +279,7 @@ void VG_(sigframe_create)( ThreadId tid,
    if (0)
       VG_(printf)("pushed signal frame; %%R1 now = %#lx, "
                   "next %%CIA = %#llx, status=%d\n",
-                 sp, tst->arch.vex.guest_CIA, tst->status);
+                 sp, tst->arch.vex.guest_CIA, (Int)tst->status);
 }
 
 
@@ -345,7 +345,7 @@ void VG_(sigframe_destroy)( ThreadId tid, Bool isRT )
 
    if (VG_(clo_trace_signals))
       VG_(message)(Vg_DebugMsg,
-                   "vg_pop_signal_frame (thread %d): isRT=%d "
+                   "vg_pop_signal_frame (thread %u): isRT=%d "
                    "valid magic; EIP=%#llx\n",
                    tid, has_siginfo, tst->arch.vex.guest_CIA);
 
index 2e1ad0ced555d9ea2b2b351314a11e62ff6e13c4..e0cd419916fad53174cea02b67f6c06b126538c0 100644 (file)
@@ -449,7 +449,7 @@ Bool restore_vg_sigframe ( ThreadState *tst,
 {
    if (frame->magicPI != 0x31415927 ||
        frame->magicE  != 0x27182818) {
-      VG_(message)(Vg_UserMsg, "Thread %d return signal frame "
+      VG_(message)(Vg_UserMsg, "Thread %u return signal frame "
                               "corrupted.  Killing process.\n",
                   tst->tid);
       VG_(set_default_handler)(VKI_SIGSEGV);
@@ -495,7 +495,7 @@ void VG_(sigframe_destroy)( ThreadId tid, Bool isRT )
    Addr          sp;
    ThreadState*  tst;
    SizeT         size;
-   Int            sigNo;
+   Int           sigNo;
 
    tst = VG_(get_ThreadState)(tid);
 
@@ -515,7 +515,7 @@ void VG_(sigframe_destroy)( ThreadId tid, Bool isRT )
    if (VG_(clo_trace_signals))
       VG_(message)(
          Vg_DebugMsg,
-         "VG_(sigframe_destroy) (thread %d): isRT=%d valid magic; IP=%#llx\n",
+         "VG_(sigframe_destroy) (thread %u): isRT=%d valid magic; IP=%#llx\n",
          tid, isRT, tst->arch.vex.guest_IA);
 
    /* tell the tools */
index 2e28bd5632e3ea2a59ee98b8f876b5a7231b0b8b..5f3b656209795015fabef204fff6486657ef4a95 100644 (file)
@@ -221,7 +221,7 @@ void VG_(sigframe_create)(ThreadId tid, Bool on_altstack,
 
    if (VG_(clo_trace_signals))
       VG_(message)(Vg_DebugMsg,
-                   "sigframe_create (thread %d): next IP=%#lx, "
+                   "sigframe_create (thread %u): next IP=%#lx, "
                    "next SP=%#lx\n",
                    tid, (Addr)handler, (Addr)frame);
 }
@@ -256,7 +256,7 @@ void VG_(sigframe_return)(ThreadId tid, const vki_ucontext_t *uc)
    /* Returning from a signal handler. */
    if (VG_(clo_trace_signals))
       VG_(message)(Vg_DebugMsg,
-                   "sigframe_return (thread %d): IP=%#lx\n",
+                   "sigframe_return (thread %u): IP=%#lx\n",
                    tid, VG_(get_IP)(tid));
 
    /* Tell the tool. */
index 4d4fc94c9ee5ce27abd68c8db24f51c2bd7fcea8..f57dd077ab1813d191cfaf19f96f5dce3cee5a73 100644 (file)
@@ -239,7 +239,7 @@ void VG_(sigframe_create)( ThreadId tid,
   if (0)
     VG_(printf)("pushed signal frame; sp now = %lx, "
                 "next %pc = %lx, status=%d\n",
-                (Addr)frame, tst->arch.vex.guest_pc, tst->status);
+                (Addr)frame, tst->arch.vex.guest_pc, (Int)tst->status);
 }
 
 /* EXPORTED */
@@ -264,7 +264,7 @@ void VG_(sigframe_destroy)( ThreadId tid, Bool isRT )
     if (0)
       VG_(printf)("destroy signal frame; sp = %lx, "
                   " %pc = %lx, status=%d\n",
-                  (Addr)frame, tst->arch.vex.guest_pc, tst->status);
+                  (Addr)frame, tst->arch.vex.guest_pc, (Int)tst->status);
 
     frame_size = sizeof(*frame);
     mc = &ucp->uc_mcontext;
@@ -339,7 +339,7 @@ void VG_(sigframe_destroy)( ThreadId tid, Bool isRT )
   VG_TRACK(die_mem_stack_signal, sp, frame_size);
   if (VG_(clo_trace_signals))
     VG_(message)( Vg_DebugMsg,
-                  "VG_(signal_return) (thread %d): isRT=%d valid magic; EIP=%#x\n",
+                  "VG_(signal_return) (thread %u): isRT=%d valid magic; EIP=%#x\n",
                   tid, isRT, tst->arch.vex.guest_pc);
   /* tell the tools */
   VG_TRACK( post_deliver_signal, tid, sigNo );
index 8e77f6006df5d8874d4822464c5ad19d0f71b93f..789e7f17fa57876bb183f3ba1444a2018bacef37 100644 (file)
@@ -209,7 +209,7 @@ void VG_(sigframe_create) ( ThreadId tid,
 
    if (VG_(clo_trace_signals))
       VG_(message)(Vg_DebugMsg,
-                   "sigframe_create (thread %d): "
+                   "sigframe_create (thread %u): "
                    "next EIP=%#lx, next ESP=%#lx\n",
                    tid, (Addr)handler, (Addr)frame );
 }
@@ -252,7 +252,7 @@ void VG_(sigframe_destroy)( ThreadId tid, Bool isRT )
 
    if (VG_(clo_trace_signals))
       VG_(message)(Vg_DebugMsg,
-                   "sigframe_destroy (thread %d): "
+                   "sigframe_destroy (thread %u): "
                    "valid magic; next EIP=%#x\n",
                    tid, tst->arch.vex.guest_EIP);
 
index ce33f7356bb3dd72fe90cee2a7030adcc1cd6b76..43111116da16f25eff417ffa0cd1bf143a64aec4 100644 (file)
@@ -567,7 +567,7 @@ void VG_(sigframe_create)( ThreadId tid,
    if (0)
       VG_(printf)("pushed signal frame; %%ESP now = %#lx, "
                   "next %%EIP = %#x, status=%d\n",
-                 esp, tst->arch.vex.guest_EIP, tst->status);
+                 esp, tst->arch.vex.guest_EIP, (Int)tst->status);
 }
 
 
@@ -583,7 +583,7 @@ Bool restore_vg_sigframe ( ThreadState *tst,
 {
    if (frame->magicPI != 0x31415927 ||
        frame->magicE  != 0x27182818) {
-      VG_(message)(Vg_UserMsg, "Thread %d return signal frame "
+      VG_(message)(Vg_UserMsg, "Thread %u return signal frame "
                                "corrupted.  Killing process.\n",
                   tst->tid);
       VG_(set_default_handler)(VKI_SIGSEGV);
@@ -673,7 +673,7 @@ void VG_(sigframe_destroy)( ThreadId tid, Bool isRT )
    if (VG_(clo_trace_signals))
       VG_(message)(
          Vg_DebugMsg, 
-         "VG_(signal_return) (thread %d): isRT=%d valid magic; EIP=%#x\n",
+         "VG_(signal_return) (thread %u): isRT=%d valid magic; EIP=%#x\n",
          tid, isRT, tst->arch.vex.guest_EIP);
 
    /* tell the tools */