diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-11-03 12:54:51 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-11-03 12:54:51 +0000 |
commit | b5bdb568a598aea5f9a94ba7a91e5d41fe9e458e (patch) | |
tree | ac612de49696876a59ab2121a4502c1b75e65675 /usr.bin | |
parent | a8e06cffdd20a83882a72b9e059548967aa990db (diff) |
Fix a format string warning in dump_type().
From Mark Johnston, markj@FreeBSD
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ctfconv/ctfconv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ctfconv/ctfconv.c b/usr.bin/ctfconv/ctfconv.c index 8abe515b94a..c14d046fef5 100644 --- a/usr.bin/ctfconv/ctfconv.c +++ b/usr.bin/ctfconv/ctfconv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ctfconv.c,v 1.13 2017/10/27 08:33:46 mpi Exp $ */ +/* $OpenBSD: ctfconv.c,v 1.14 2017/11/03 12:54:50 mpi Exp $ */ /* * Copyright (c) 2016-2017 Martin Pieuchot @@ -416,7 +416,7 @@ dump_type(struct itype *it) (it->it_type == CTF_K_STRUCT) ? "STRUCT" : "UNION", type_name(it), it->it_size); TAILQ_FOREACH(im, &it->it_members, im_next) { - printf("\t%s type=%u off=%zd\n", + printf("\t%s type=%u off=%zu\n", (im_name(im) == NULL) ? "unknown" : im_name(im), im->im_refp ? im->im_refp->it_idx : 0, im->im_off); } |