diff options
author | Pedro Alves <palves@redhat.com> | 2010-02-17 22:55:40 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-02-17 22:55:40 +0000 |
commit | f8a8bc2ce4705444aa44c0c364d799dc501bf991 (patch) | |
tree | 854ab6437cef3c9022740ba5dd881b1749f3f561 /gdb/testsuite/gdb.base/unload.c | |
parent | 6f451e5ec454cf6611b99df727ba77bf8bc71da7 (diff) | |
download | gdb-f8a8bc2ce4705444aa44c0c364d799dc501bf991.zip gdb-f8a8bc2ce4705444aa44c0c364d799dc501bf991.tar.gz gdb-f8a8bc2ce4705444aa44c0c364d799dc501bf991.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/testsuite/gdb.base/unload.c')
-rw-r--r-- | gdb/testsuite/gdb.base/unload.c | 12 |
1 files changed, 6 insertions, 6 deletions
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); } |