From 6d497bbef7f18e37f862c2eaa1820f87546936e1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 25 Aug 2002 08:44:43 +0000 Subject: 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. --- libio/tst-mmap-setvbuf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libio/tst-mmap-setvbuf.c') diff --git a/libio/tst-mmap-setvbuf.c b/libio/tst-mmap-setvbuf.c index 6fe9ce3482..47854b714e 100644 --- a/libio/tst-mmap-setvbuf.c +++ b/libio/tst-mmap-setvbuf.c @@ -34,14 +34,14 @@ int 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,26 +51,26 @@ int 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 (setvbuf (f, buf, _IOFBF, sizeof buf)) { - printf ("%Zd: setvbuf failed: %m\n", __LINE__); + printf ("%u: setvbuf failed: %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); } -- cgit v1.2.3