From f8a8bc2ce4705444aa44c0c364d799dc501bf991 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 17 Feb 2010 22:55:40 +0000 Subject: * gdb.base/shmain.c (main): Remove printf call. * gdb.base/sizeof.c (main): Cast return of sizeof to int. * gdb.base/unload.c (main): Make format of fprintf a string literal. Add missing endlines to prints to stderr. * gdb.base/watchpoint-solib.c (open_shlib): Ditto. --- gdb/testsuite/gdb.base/unload.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gdb/testsuite/gdb.base/unload.c') diff --git a/gdb/testsuite/gdb.base/unload.c b/gdb/testsuite/gdb.base/unload.c index 51a4a05..b58085c 100644 --- a/gdb/testsuite/gdb.base/unload.c +++ b/gdb/testsuite/gdb.base/unload.c @@ -44,7 +44,7 @@ int main() if (!handle) { - fprintf (stderr, dlerror ()); + fprintf (stderr, "%s\n", dlerror ()); exit (1); } @@ -53,9 +53,9 @@ int main() if (!unloadshr) { #ifdef __WIN32__ - fprintf (stderr, "error %d occurred", GetLastError ()); + fprintf (stderr, "error %d occurred\n", GetLastError ()); #else - fprintf (stderr, "%s", dlerror ()); + fprintf (stderr, "%s\n", dlerror ()); #endif exit (1); } @@ -71,7 +71,7 @@ int main() if (!handle) { - fprintf (stderr, dlerror ()); + fprintf (stderr, "%s\n", dlerror ()); exit (1); } @@ -80,9 +80,9 @@ int main() if (!unloadshr) { #ifdef __WIN32__ - fprintf (stderr, "error %d occurred", GetLastError ()); + fprintf (stderr, "error %d occurred\n", GetLastError ()); #else - fprintf (stderr, "%s", dlerror ()); + fprintf (stderr, "%s\n", dlerror ()); #endif exit (1); } -- cgit v1.1