* gdb.base/solib-disc.c (main): Make format of fprintf a string
authorPedro Alves <palves@redhat.com>
Sun, 14 Mar 2010 17:46:51 +0000 (17:46 +0000)
committerPedro Alves <palves@redhat.com>
Sun, 14 Mar 2010 17:46:51 +0000 (17:46 +0000)
literal.  Add missing endlines to prints to stderr.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/solib-disc.c

index e25b727..5e990ac 100644 (file)
@@ -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:
index 5c93e3e..7781c92 100644 (file)
@@ -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);
     }