This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]