diff options
author | Joel Brobecker <brobecker@gnat.com> | 2013-06-11 11:01:46 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2013-06-11 11:01:46 +0000 |
commit | 2ed3e009404afc6de621a5b7606922a115ec46bb (patch) | |
tree | 34103037f93380578e5d223222fb51d3837104e2 | |
parent | 0c3d84be3e696d2d1787a7240e086a72054b9679 (diff) | |
download | gdb-2ed3e009404afc6de621a5b7606922a115ec46bb.zip gdb-2ed3e009404afc6de621a5b7606922a115ec46bb.tar.gz gdb-2ed3e009404afc6de621a5b7606922a115ec46bb.tar.bz2 |
[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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/windows-nat.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fc0508e..f8b9386 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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 ID in debug trace. (get_windows_debug_event): Likewise, for all debug traces. diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index e0bb719..b30f425 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; } |