diff options
author | guenther <guenther@openbsd.org> | 2013-08-22 04:43:40 +0000 |
---|---|---|
committer | guenther <guenther@openbsd.org> | 2013-08-22 04:43:40 +0000 |
commit | 82ff36301fdb8c25511dd105cf211d26ea7f836e (patch) | |
tree | f17f8c8d35e761468f7997cee38d8a28bf837c8b /usr.sbin/kvm_mkdb | |
parent | Split out from kdump.c the ktrstruct.c bits into ktrstruct.c (diff) | |
download | wireguard-openbsd-82ff36301fdb8c25511dd105cf211d26ea7f836e.tar.xz wireguard-openbsd-82ff36301fdb8c25511dd105cf211d26ea7f836e.zip |
Correct format string mismatches turned up by -Wformat=2
suggestions and ok millert@
Diffstat (limited to 'usr.sbin/kvm_mkdb')
-rw-r--r-- | usr.sbin/kvm_mkdb/nlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/kvm_mkdb/nlist.c b/usr.sbin/kvm_mkdb/nlist.c index 267a2bda9b0..8edd6f687b7 100644 --- a/usr.sbin/kvm_mkdb/nlist.c +++ b/usr.sbin/kvm_mkdb/nlist.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nlist.c,v 1.41 2013/01/29 22:39:06 miod Exp $ */ +/* $OpenBSD: nlist.c,v 1.42 2013/08/22 04:43:41 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -318,7 +318,7 @@ __elf_knlist(int fd, DB *db, int ksyms) sh = (Elf_Shdr *)calloc(sizeof(Elf_Shdr), eh.e_shnum); if (sh == NULL) - errx(1, "cannot allocate %d bytes for symbol header", + errx(1, "cannot allocate %zu bytes for symbol header", sizeof(Elf_Shdr) * eh.e_shnum); if (fseek (fp, eh.e_shoff, SEEK_SET) < 0) { |