From 0b90e65516245333386f8a3d052e7040ff63dd94 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Sat, 16 Nov 2013 00:47:50 +0000 Subject: _kvm_syserr() is printf-like too --- lib/libkvm/kvm_private.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libkvm/kvm_private.h') diff --git a/lib/libkvm/kvm_private.h b/lib/libkvm/kvm_private.h index c1f8c6ee982..0e735d5bf95 100644 --- a/lib/libkvm/kvm_private.h +++ b/lib/libkvm/kvm_private.h @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_private.h,v 1.20 2013/11/16 00:37:11 guenther Exp $ */ +/* $OpenBSD: kvm_private.h,v 1.21 2013/11/16 00:47:49 guenther Exp $ */ /* $NetBSD: kvm_private.h,v 1.7 1996/05/05 04:32:15 gwr Exp $ */ /*- @@ -99,6 +99,7 @@ int _kvm_kvatop(kvm_t *, u_long, paddr_t *); void *_kvm_malloc(kvm_t *kd, size_t); off_t _kvm_pa2off(kvm_t *, paddr_t); void *_kvm_realloc(kvm_t *kd, void *, size_t); -void _kvm_syserr(kvm_t *kd, const char *program, const char *fmt, ...); +void _kvm_syserr(kvm_t *kd, const char *program, const char *fmt, ...) + __attribute__((__format__ (printf, 3, 4))); ssize_t _kvm_pread(kvm_t *, int, void *, size_t, off_t); ssize_t _kvm_pwrite(kvm_t *, int, const void *, size_t, off_t); -- cgit v1.2.3