aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-03-14 17:46:51 +0000
committerPedro Alves <palves@redhat.com>2010-03-14 17:46:51 +0000
commit51f4c0b08eed762435b7aa6c1784ade7ab20165c (patch)
tree8d6d71bb007ac716bfeb7803b455438ebb55fe9b /gdb
parent5f25d77d673f04bd07e6012f0646647b6317f3b7 (diff)
downloadgdb-51f4c0b08eed762435b7aa6c1784ade7ab20165c.zip
gdb-51f4c0b08eed762435b7aa6c1784ade7ab20165c.tar.gz
gdb-51f4c0b08eed762435b7aa6c1784ade7ab20165c.tar.bz2
* gdb.base/solib-disc.c (main): Make format of fprintf a string
literal. Add missing endlines to prints to stderr.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/solib-disc.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e25b727..5e990ac 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-14 Pedro Alves <pedro@codesourcery.com>
+
+ * gdb.base/solib-disc.c (main): Make format of fprintf a string
+ literal. Add missing endlines to prints to stderr.
+
2010-03-12 Tom Tromey <tromey@redhat.com>
PR c++/9708:
diff --git a/gdb/testsuite/gdb.base/solib-disc.c b/gdb/testsuite/gdb.base/solib-disc.c
index 5c93e3e..7781c92 100644
--- a/gdb/testsuite/gdb.base/solib-disc.c
+++ b/gdb/testsuite/gdb.base/solib-disc.c
@@ -36,14 +36,14 @@ int main()
handle = dlopen (SHLIB_NAME, RTLD_LAZY);
if (!handle)
{
- fprintf (stderr, dlerror ());
+ fprintf (stderr, "%s\n", dlerror ());
exit (1);
}
func = (void (*)(void)) dlsym (handle, "shrfunc");
if (!func)
{
- fprintf (stderr, dlerror ());
+ fprintf (stderr, "%s\n", dlerror ());
exit (1);
}