aboutsummaryrefslogtreecommitdiff
path: root/libio/tst-freopen.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-08-25 08:44:43 +0000
committerUlrich Drepper <drepper@redhat.com>2002-08-25 08:44:43 +0000
commit6d497bbef7f18e37f862c2eaa1820f87546936e1 (patch)
tree534e2ec81ac34ec866783d811a0124da1867366c /libio/tst-freopen.c
parent5a47e7f2a85ecc103175095c0f4104065fd4d8db (diff)
downloadglibc-6d497bbef7f18e37f862c2eaa1820f87546936e1.tar
glibc-6d497bbef7f18e37f862c2eaa1820f87546936e1.tar.gz
glibc-6d497bbef7f18e37f862c2eaa1820f87546936e1.tar.bz2
glibc-6d497bbef7f18e37f862c2eaa1820f87546936e1.zip
Update.
* libio/tst-freopen.c (main): Use correct formats for __LINE__. * libio/tst-mmap-setvbuf.c (main): Likewise. * libio/tst-widetext.c (main): Likewise. * libio/tst-mmap-eofsync.c (do_test): Use correct format in error message. * libio/tst-mmap-fflushsync.c (do_test): Likewise. * libio/tst-mmap2-eofsync.c (do_test): Likewise.
Diffstat (limited to 'libio/tst-freopen.c')
-rw-r--r--libio/tst-freopen.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libio/tst-freopen.c b/libio/tst-freopen.c
index 8228951071..2b71b1f492 100644
--- a/libio/tst-freopen.c
+++ b/libio/tst-freopen.c
@@ -34,14 +34,14 @@ main (void)
if (fd == -1)
{
- printf ("%Zd: cannot open temporary file: %m\n", __LINE__);
+ printf ("%u: cannot open temporary file: %m\n", __LINE__);
exit (1);
}
f = fdopen (fd, "w");
if (f == NULL)
{
- printf ("%Zd: cannot fdopen temporary file: %m\n", __LINE__);
+ printf ("%u: cannot fdopen temporary file: %m\n", __LINE__);
exit (1);
}
@@ -51,20 +51,20 @@ main (void)
f = fopen (name, "r");
if (f == NULL)
{
- printf ("%Zd: cannot fopen temporary file: %m\n", __LINE__);
+ printf ("%u: cannot fopen temporary file: %m\n", __LINE__);
exit (1);
}
if (fread (temp, 1, strlen (test), f) != strlen (test))
{
- printf ("%Zd: couldn't read the file back: %m\n", __LINE__);
+ printf ("%u: couldn't read the file back: %m\n", __LINE__);
exit (1);
}
temp [strlen (test)] = '\0';
if (strcmp (test, temp))
{
- printf ("%Zd: read different string than was written:\n%s%s",
+ printf ("%u: read different string than was written:\n%s%s",
__LINE__, test, temp);
exit (1);
}
@@ -72,26 +72,26 @@ main (void)
f = freopen (name, "r+", f);
if (f == NULL)
{
- printf ("%Zd: cannot freopen temporary file: %m\n", __LINE__);
+ printf ("%u: cannot freopen temporary file: %m\n", __LINE__);
exit (1);
}
if (fseek (f, 0, SEEK_SET) != 0)
{
- printf ("%Zd: couldn't fseek to start: %m\n", __LINE__);
+ printf ("%u: couldn't fseek to start: %m\n", __LINE__);
exit (1);
}
if (fread (temp, 1, strlen (test), f) != strlen (test))
{
- printf ("%Zd: couldn't read the file back: %m\n", __LINE__);
+ printf ("%u: couldn't read the file back: %m\n", __LINE__);
exit (1);
}
temp [strlen (test)] = '\0';
if (strcmp (test, temp))
{
- printf ("%Zd: read different string than was written:\n%s%s",
+ printf ("%u: read different string than was written:\n%s%s",
__LINE__, test, temp);
exit (1);
}