diff options
author | Pedro Alves <palves@redhat.com> | 2010-03-14 17:46:51 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-03-14 17:46:51 +0000 |
commit | 51f4c0b08eed762435b7aa6c1784ade7ab20165c (patch) | |
tree | 8d6d71bb007ac716bfeb7803b455438ebb55fe9b | |
parent | 5f25d77d673f04bd07e6012f0646647b6317f3b7 (diff) | |
download | gdb-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.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | 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 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); } |