diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6bb50baf22..0e91ff3f63 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2004-08-10 Mark Kettenis + + * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP. + 2004-08-09 Joel Brobecker General cleanup of the AIX xm include file: diff --git a/gdb/procfs.c b/gdb/procfs.c index 19d7ae3904..b94e03710a 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; }