This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix procfs.c compiler warning
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 10 Aug 2004 18:06:34 +0200 (CEST)
- Subject: [PATCH] Fix procfs.c compiler warning
Doh! Didn't notice this when testing my previous patch.
Committed as obvious.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
Index: procfs.c
===================================================================
RCS file: /cvs/src/src/gdb/procfs.c,v
retrieving revision 1.55
diff -u -p -r1.55 procfs.c
--- procfs.c 8 Aug 2004 01:00:55 -0000 1.55
+++ procfs.c 10 Aug 2004 16:02:23 -0000
@@ -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;
}