This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix compiler warning in proc-api.c
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 14 Dec 2003 14:40:44 +0100 (CET)
- Subject: [PATCH] Fix compiler warning in proc-api.c
Committed as obvious.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* proc-api.c (procfs_note): Add format string to fprintf call.
Index: proc-api.c
===================================================================
RCS file: /cvs/src/src/gdb/proc-api.c,v
retrieving revision 1.17
diff -u -p -r1.17 proc-api.c
--- proc-api.c 15 May 2003 22:58:38 -0000 1.17
+++ proc-api.c 14 Dec 2003 13:39:15 -0000
@@ -747,7 +747,7 @@ procfs_note (char *msg, char *file, int
if (info_verbose)
fprintf (procfs_file ? procfs_file : stdout,
"%s:%d -- ", file, line);
- fprintf (procfs_file ? procfs_file : stdout, msg);
+ fprintf (procfs_file ? procfs_file : stdout, "%s", msg);
if (procfs_file)
fflush (procfs_file);
}