This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH COMMITTED] support: Use %td for pointer difference in xwrite


2017-01-01  Florian Weimer  <fweimer@redhat.com>

	* support/xwrite.c (xwrite): Use %td for pointer difference.

diff --git a/support/xwrite.c b/support/xwrite.c
index a435d69..134e8ee 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;
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]