diff options
author | 2017-10-28 08:22:28 +0000 | |
---|---|---|
committer | 2017-10-28 08:22:28 +0000 | |
commit | 1cde2143c8da847d9d2093efef55307c79018134 (patch) | |
tree | 99239e70f837096229811aecf2f6d628f9504a45 | |
parent | Prefer useradd(1) over chpass(1) so that new users are added before the YP '+' (diff) | |
download | wireguard-openbsd-1cde2143c8da847d9d2093efef55307c79018134.tar.xz wireguard-openbsd-1cde2143c8da847d9d2093efef55307c79018134.zip |
Print values as unsigned when dumping header.
-rw-r--r-- | usr.bin/ctfdump/ctfdump.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/ctfdump/ctfdump.c b/usr.bin/ctfdump/ctfdump.c index 46f69fe7f82..08cb0f9df77 100644 --- a/usr.bin/ctfdump/ctfdump.c +++ b/usr.bin/ctfdump/ctfdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ctfdump.c,v 1.14 2017/10/27 09:35:22 mpi Exp $ */ +/* $OpenBSD: ctfdump.c,v 1.15 2017/10/28 08:22:28 mpi Exp $ */ /* * Copyright (c) 2016 Martin Pieuchot <mpi@openbsd.org> @@ -296,18 +296,18 @@ ctf_dump(const char *p, size_t size, uint8_t flags) if (flags & DUMP_HEADER) { printf(" cth_magic = 0x%04x\n", cth->cth_magic); - printf(" cth_version = %d\n", cth->cth_version); + printf(" cth_version = %u\n", cth->cth_version); printf(" cth_flags = 0x%02x\n", cth->cth_flags); printf(" cth_parlabel = %s\n", ctf_off2name(cth, data, dlen, cth->cth_parlabel)); printf(" cth_parname = %s\n", ctf_off2name(cth, data, dlen, cth->cth_parname)); - printf(" cth_lbloff = %d\n", cth->cth_lbloff); - printf(" cth_objtoff = %d\n", cth->cth_objtoff); - printf(" cth_funcoff = %d\n", cth->cth_funcoff); - printf(" cth_typeoff = %d\n", cth->cth_typeoff); - printf(" cth_stroff = %d\n", cth->cth_stroff); - printf(" cth_strlen = %d\n", cth->cth_strlen); + printf(" cth_lbloff = %u\n", cth->cth_lbloff); + printf(" cth_objtoff = %u\n", cth->cth_objtoff); + printf(" cth_funcoff = %u\n", cth->cth_funcoff); + printf(" cth_typeoff = %u\n", cth->cth_typeoff); + printf(" cth_stroff = %u\n", cth->cth_stroff); + printf(" cth_strlen = %u\n", cth->cth_strlen); printf("\n"); } |