From: Pedro Alves Date: Sun, 14 Mar 2010 17:46:51 +0000 (+0000) Subject: * gdb.base/solib-disc.c (main): Make format of fprintf a string X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51f4c0b08eed762435b7aa6c1784ade7ab20165c;p=binutils-gdb.git * gdb.base/solib-disc.c (main): Make format of fprintf a string literal. Add missing endlines to prints to stderr. --- 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); }