diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2019-06-05 13:34:36 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2019-06-05 13:34:36 +0100 |
commit | 62d8e3b73139b159963025b5568ec1f5051450f0 (patch) | |
tree | 0d7e6d247505e9f21093be16e7f2386c2736289d /libctf/ctf-create.c | |
parent | gdb/testsuite: Improve comments in recently added test (diff) | |
download | binutils-gdb-62d8e3b73139b159963025b5568ec1f5051450f0.tar.gz binutils-gdb-62d8e3b73139b159963025b5568ec1f5051450f0.tar.bz2 binutils-gdb-62d8e3b73139b159963025b5568ec1f5051450f0.zip |
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.
Diffstat (limited to 'libctf/ctf-create.c')
-rw-r--r-- | libctf/ctf-create.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libctf/ctf-create.c b/libctf/ctf-create.c index 356d51295f5..5bcc36eff81 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)); } |