summaryrefslogtreecommitdiffstats
path: root/usr.bin/ctfconv/ctfconv.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2017-11-03 12:54:50 +0000
committermpi <mpi@openbsd.org>2017-11-03 12:54:50 +0000
commitfaf74f15ea3f45303b9e2fc6f075bf30e161c991 (patch)
tree92be9da79969438b636825da394d0d455375f158 /usr.bin/ctfconv/ctfconv.c
parentFix formatting in the case where a symbol table isn't present. (diff)
downloadwireguard-openbsd-faf74f15ea3f45303b9e2fc6f075bf30e161c991.tar.xz
wireguard-openbsd-faf74f15ea3f45303b9e2fc6f075bf30e161c991.zip
Fix a format string warning in dump_type().
From Mark Johnston, markj@FreeBSD
Diffstat (limited to 'usr.bin/ctfconv/ctfconv.c')
-rw-r--r--usr.bin/ctfconv/ctfconv.c4
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);
}