From 2ed3e009404afc6de621a5b7606922a115ec46bb Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Tue, 11 Jun 2013 11:01:46 +0000 Subject: [PATCH] [windows] Fix accidental change of %u -> %d in SuspendThread warning. 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 | 5 +++++ gdb/windows-nat.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fc0508e3274..f8b93869226 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-06-11 Joel Brobecker + + * 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 * windows-nat.c (windows_continue): Add "0x" prefix for thread diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index e0bb7194e56..b30f4251ee3 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -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; } -- 2.30.2