[windows] Fix accidental change of %u -> %d in SuspendThread warning.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 11 Jun 2013 11:01:46 +0000 (11:01 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 11 Jun 2013 11:01:46 +0000 (11:01 +0000)
While enhancing the warning printed in when SuspendThread fails,
I accidently changed the format used to print the error code
from %u to %d. This patch reverts it back.

gdb/ChangeLog:

        * windows-nat.c (thread_rec): Revert format used to print
        error code returned by SuspendThread from %d back to %u.

gdb/ChangeLog
gdb/windows-nat.c

index fc0508e327432a8779e3c5d85dd4be618af61a40..f8b938692260839ea60d6f26b10225ee9bb3733d 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-11  Joel Brobecker  <brobecker@adacore.com>
+
+       * windows-nat.c (thread_rec): Revert format used to print
+       error code returned by SuspendThread from %d back to %u.
+
 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
 
        * windows-nat.c (windows_continue): Add "0x" prefix for thread
index e0bb7194e564e1ce2fab4feb4e1dc6456f462f28..b30f4251ee348928ccb06863b9e104b24ab0ac39 100644 (file)
@@ -312,7 +312,7 @@ thread_rec (DWORD id, int get_context)
                  {
                    DWORD err = GetLastError ();
                    warning (_("SuspendThread (tid=0x%x) failed."
-                              " (winerr %d)"),
+                              " (winerr %u)"),
                             (unsigned) id, (unsigned) err);
                    return NULL;
                  }