diff options
author | Pierre Muller <muller@sourceware.org> | 2009-10-01 15:39:13 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2009-10-01 15:39:13 +0000 |
commit | 209f53f5248aa219cad6261bdd6622c804c485e9 (patch) | |
tree | 39c913ffec07d37954d444ff2588edd8b24dbaeb /gdb/testsuite/gdb.base | |
parent | 9f32dd5b5aa7d0e60941aa7c33573afede6277bf (diff) | |
download | gdb-209f53f5248aa219cad6261bdd6622c804c485e9.zip gdb-209f53f5248aa219cad6261bdd6622c804c485e9.tar.gz gdb-209f53f5248aa219cad6261bdd6622c804c485e9.tar.bz2 |
* gdb.base/fileio.c (test_lseek): typecast ofs_t ret variable to
long type.
(test_unlink): Correct printf string.
* gdb.base/checkpoint.c (main): Correct fprintf string for variable i.
* gdb.threads/attachstop-mt.c: Add #include <string.h>.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/checkpoint.c | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/fileio.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.base/checkpoint.c b/gdb/testsuite/gdb.base/checkpoint.c index 4a41268..2d44a74 100644 --- a/gdb/testsuite/gdb.base/checkpoint.c +++ b/gdb/testsuite/gdb.base/checkpoint.c @@ -40,9 +40,9 @@ main() for (i = 0; ; i++) { if (ftell (in) != i) - fprintf (stderr, "Input error at %d\n", i); + fprintf (stderr, "Input error at %ld\n", i); if (ftell (out) != i) - fprintf (stderr, "Output error at %d\n", i); + fprintf (stderr, "Output error at %ld\n", i); c = fgetc (in); if (c == '\n') lines++; /* breakpoint 1 */ diff --git a/gdb/testsuite/gdb.base/fileio.c b/gdb/testsuite/gdb.base/fileio.c index 3910da5..329522f 100644 --- a/gdb/testsuite/gdb.base/fileio.c +++ b/gdb/testsuite/gdb.base/fileio.c @@ -231,13 +231,13 @@ test_lseek () } else { - printf ("lseek 1: ret = %d, errno = %d %s\n", ret, errno, + printf ("lseek 1: ret = %ld, errno = %d %s\n", (long) ret, errno, strerrno (errno)); stop (); - printf ("lseek 2: ret = %d, errno = %d %s\n", ret, errno, + printf ("lseek 2: ret = %ld, errno = %d %s\n", (long) ret, errno, strerrno (errno)); stop (); - printf ("lseek 3: ret = %d, errno = %d %s\n", ret, errno, + printf ("lseek 3: ret = %ld, errno = %d %s\n", (long) ret, errno, strerrno (errno)); } /* Seeking on an invalid file descriptor */ @@ -473,7 +473,7 @@ test_unlink () strerrno (errno)); } else - printf ("unlink 2: ret = %d chmod failed\n", ret, errno); + printf ("unlink 2: ret = %d chmod failed, errno= %d\n", ret, errno); } else printf ("unlink 2: ret = %d, errno = %d\n", ret, errno); |