aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-08-10 16:05:38 +0000
committerMark Kettenis <kettenis@gnu.org>2004-08-10 16:05:38 +0000
commit21749010c896d54eb61863f699e7a1864e239001 (patch)
tree72c87530017fab529df1f783b0e35d5d849c00cd
parent99877b66add640cf4034b264219d5d8f511a5f72 (diff)
downloadgdb-21749010c896d54eb61863f699e7a1864e239001.zip
gdb-21749010c896d54eb61863f699e7a1864e239001.tar.gz
gdb-21749010c896d54eb61863f699e7a1864e239001.tar.bz2
* procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/procfs.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6bb50ba..0e91ff3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2004-08-10 Mark Kettenis <kettenis@gnu.org>
+
+ * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
+
2004-08-09 Joel Brobecker <brobecker@gnat.com>
General cleanup of the AIX xm include file:
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 19d7ae3..b94e037 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -5132,7 +5132,7 @@ procfs_pid_to_str (ptid_t ptid)
if (TIDGET (ptid) == 0)
sprintf (buf, "process %d", PIDGET (ptid));
else
- sprintf (buf, "LWP %d", TIDGET (ptid));
+ sprintf (buf, "LWP %ld", TIDGET (ptid));
return buf;
}