diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-08-10 16:05:38 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-08-10 16:05:38 +0000 |
commit | 75f39f3a59793b4cecaca538b20a3a3455ad4db1 (patch) | |
tree | 8a86f9f4b760268a7d5365adb1744ad35c9a8d40 | |
parent | 7591aa19d0899bc820ec371276d7ae965ec93341 (diff) | |
download | gdb-75f39f3a59793b4cecaca538b20a3a3455ad4db1.tar.gz |
* procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/procfs.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6bb50baf22b..0e91ff3f63b 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 19d7ae3904c..b94e03710ac 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; } |