about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-01-01 09:27:54 +0100
committerFlorian Weimer <fweimer@redhat.com>2017-01-01 09:27:54 +0100
commit8e2c31b57fc8ade88e2d3f64c007bce49ed82daa (patch)
treefb2e906790ac8e7bc2fdfbd787bbf46866bebce6
parent34a63b097335d3411080b5b6e5b164ab36563847 (diff)
downloadglibc-8e2c31b57fc8ade88e2d3f64c007bce49ed82daa.tar.gz
glibc-8e2c31b57fc8ade88e2d3f64c007bce49ed82daa.tar.xz
glibc-8e2c31b57fc8ade88e2d3f64c007bce49ed82daa.zip
support: Use %td for pointer difference in xwrite
-rw-r--r--ChangeLog4
-rw-r--r--support/xwrite.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7259267d18..7b7508b36d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2017-01-01  Florian Weimer  <fweimer@redhat.com>
 
+	* support/xwrite.c (xwrite): Use %td for pointer difference.
+
+2017-01-01  Florian Weimer  <fweimer@redhat.com>
+
 	* malloc/Makefile (tests): Add tst-malloc-usable-tunables for
 	have-tunables only.
 	(tests-static): Add tst-malloc-usable-static-tunables for
diff --git a/support/xwrite.c b/support/xwrite.c
index a435d6949b..134e8ee4c1 100644
--- a/support/xwrite.c
+++ b/support/xwrite.c
@@ -29,10 +29,10 @@ xwrite (int fd, const void *buffer, size_t length)
     {
       ssize_t ret = write (fd, p, end - p);
       if (ret < 0)
-        FAIL_EXIT1 ("write of %zu bytes failed after %zd: %m",
+        FAIL_EXIT1 ("write of %zu bytes failed after %td: %m",
                     length, p - (const char *) buffer);
       if (ret == 0)
-        FAIL_EXIT1 ("write return 0 after writing %zd bytes of %zu",
+        FAIL_EXIT1 ("write return 0 after writing %td bytes of %zu",
                     p - (const char *) buffer, length);
       p += ret;
     }