From 62d8e3b73139b159963025b5568ec1f5051450f0 Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Wed, 5 Jun 2019 13:34:36 +0100 Subject: libctf: eschew %zi format specifier Too many platforms don't support it, and we can always safely use %lu or %li anyway, because the only uses are in debugging output. libctf/ * ctf-archive.c (ctf_arc_write): Eschew %zi format specifier. (ctf_arc_open_by_offset): Likewise. * ctf-create.c (ctf_add_type): Likewise. --- libctf/ctf-create.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libctf/ctf-create.c') diff --git a/libctf/ctf-create.c b/libctf/ctf-create.c index 356d512..5bcc36e 100644 --- a/libctf/ctf-create.c +++ b/libctf/ctf-create.c @@ -1822,9 +1822,10 @@ ctf_add_type (ctf_file_t *dst_fp, ctf_file_t *src_fp, ctf_id_t src_type) ctf_type_size (dst_fp, dst_type)) { ctf_dprintf ("Conflict for type %s against ID %lx: " - "union size differs, old %zi, new %zi\n", - name, dst_type, ctf_type_size (src_fp, src_type), - ctf_type_size (dst_fp, dst_type)); + "union size differs, old %li, new %li\n", + name, dst_type, + (long) ctf_type_size (src_fp, src_type), + (long) ctf_type_size (dst_fp, dst_type)); return (ctf_set_errno (dst_fp, ECTF_CONFLICT)); } -- cgit v1.1