From: deraadt Date: Wed, 10 Feb 2021 00:34:57 +0000 (+0000) Subject: cast large to reduce warning on 32-bit machines (an ELF type is printed with %ll) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=06176cf50415c07e132f48f82d408bf1f1328396;p=openbsd cast large to reduce warning on 32-bit machines (an ELF type is printed with %ll) --- diff --git a/usr.sbin/btrace/ksyms.c b/usr.sbin/btrace/ksyms.c index b599f6696ec..09fbd81cc25 100644 --- a/usr.sbin/btrace/ksyms.c +++ b/usr.sbin/btrace/ksyms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ksyms.c,v 1.3 2020/12/07 18:28:09 bluhm Exp $ */ +/* $OpenBSD: ksyms.c,v 1.4 2021/02/10 00:34:57 deraadt Exp $ */ /* * Copyright (c) 2016 Martin Pieuchot @@ -129,7 +129,7 @@ kelf_snprintsym(char *str, size_t size, unsigned long pc) int l; l = snprintf(str + cnt, size > (size_t)cnt ? size - cnt : 0, - "+0x%llx", offset); + "+0x%llx", (unsigned long long)offset); if (l < 0) return l; cnt += l;