support: Use %td for pointer difference in xwrite
This commit is contained in:
parent
34a63b0973
commit
8e2c31b57f
@ -1,3 +1,7 @@
|
||||
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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user