summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-12-14 13:40:19 +0000
committerMark Kettenis <kettenis@gnu.org>2003-12-14 13:40:19 +0000
commite11148b43a5ba127099167368b38e70880cdd287 (patch)
treee9f0931369c58095034352a94e29d24dc0d3b119 /gdb
parent1317892077be684237ca854625d49f8e56f56f4b (diff)
downloadgdb-e11148b43a5ba127099167368b38e70880cdd287.tar.gz
* proc-api.c (procfs_note): Add format string to fprintf call.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/proc-api.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c164aa1e0c6..e5bd30828db 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,7 @@
2003-12-14 Mark Kettenis <kettenis@gnu.org>
+ * proc-api.c (procfs_note): Add format string to fprintf call.
+
* i386-tdep.c (i386_analyze_frame_setup): Add missing encodings
for `subl' and `xorl' instructions.
diff --git a/gdb/proc-api.c b/gdb/proc-api.c
index 208b984a74b..1e4a2dccf17 100644
--- a/gdb/proc-api.c
+++ b/gdb/proc-api.c
@@ -747,7 +747,7 @@ procfs_note (char *msg, char *file, int line)
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);
}