From 51f4c0b08eed762435b7aa6c1784ade7ab20165c Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Sun, 14 Mar 2010 17:46:51 +0000 Subject: [PATCH] * gdb.base/solib-disc.c (main): Make format of fprintf a string literal. Add missing endlines to prints to stderr. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/solib-disc.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e25b7277818..5e990aced4b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-03-14 Pedro Alves + + * 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 PR c++/9708: diff --git a/gdb/testsuite/gdb.base/solib-disc.c b/gdb/testsuite/gdb.base/solib-disc.c index 5c93e3e1e94..7781c927118 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); } -- 2.30.2