diff options
author | deraadt <deraadt@openbsd.org> | 2020-04-28 04:17:42 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2020-04-28 04:17:42 +0000 |
commit | 205b2784263f18ebfcc0359e161f67c239259cda (patch) | |
tree | 49897426c9218d97fac009952de14bcb4be926b7 /usr.sbin/mkuboot | |
parent | when signing a challenge using a FIDO toke, perform the hashing in the (diff) | |
download | wireguard-openbsd-205b2784263f18ebfcc0359e161f67c239259cda.tar.xz wireguard-openbsd-205b2784263f18ebfcc0359e161f67c239259cda.zip |
use (long long) and %llx to satisfy both 32-bit and 64-bit systems.
Diffstat (limited to 'usr.sbin/mkuboot')
-rw-r--r-- | usr.sbin/mkuboot/copy_elf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/mkuboot/copy_elf.c b/usr.sbin/mkuboot/copy_elf.c index f301bdd10dc..7bcc8fedadf 100644 --- a/usr.sbin/mkuboot/copy_elf.c +++ b/usr.sbin/mkuboot/copy_elf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: copy_elf.c,v 1.6 2017/10/29 08:45:53 mpi Exp $ */ +/* $OpenBSD: copy_elf.c,v 1.7 2020/04/28 04:17:42 deraadt Exp $ */ /* * Copyright (c) 2013 Miodrag Vallat. @@ -284,7 +284,8 @@ ELFNAME(copy_elf)(int ifd, const char *iname, int ofd, const char *oname, } if (vaddr != esymval) - warnx("esymval and vaddr mismatch %lx %lx\n", esymval, vaddr); + warnx("esymval and vaddr mismatch %llx %llx\n", + (long long)esymval, (long long)vaddr); return crc; } |