diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2009-07-08 18:59:12 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2009-07-08 18:59:12 +0000 |
commit | 51eb81e3c3167978214bdd81a76722772aaaa3a6 (patch) | |
tree | b6268f992f13de67091f477265c0d090c03fd223 /lib | |
parent | 3a26ad2af1b84fadb948a7503ad46431ba897715 (diff) |
correct kvm_getfile2 error string
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkvm/kvm_file2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libkvm/kvm_file2.c b/lib/libkvm/kvm_file2.c index e7e2279b657..0a5daed9c73 100644 --- a/lib/libkvm/kvm_file2.c +++ b/lib/libkvm/kvm_file2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_file2.c,v 1.9 2009/06/24 13:04:24 millert Exp $ */ +/* $OpenBSD: kvm_file2.c,v 1.10 2009/07/08 18:59:11 millert Exp $ */ /* * Copyright (c) 2009 Todd C. Miller <Todd.Miller@courtesan.com> @@ -46,7 +46,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: kvm_file2.c,v 1.9 2009/06/24 13:04:24 millert Exp $"; +static char *rcsid = "$OpenBSD: kvm_file2.c,v 1.10 2009/07/08 18:59:11 millert Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -159,7 +159,7 @@ kvm_getfile2(kvm_t *kd, int op, int arg, size_t esize, int *cnt) if (rv == -1) { if (kd->vmfd != -1) goto deadway; - _kvm_syserr(kd, kd->program, "kvm_getfiles"); + _kvm_syserr(kd, kd->program, "kvm_getfile2"); return (NULL); } kd->filebase = _kvm_malloc(kd, size); @@ -170,7 +170,7 @@ kvm_getfile2(kvm_t *kd, int op, int arg, size_t esize, int *cnt) mib[5] = size / esize; rv = sysctl(mib, 6, kd->filebase, &size, NULL, 0); if (rv == -1) { - _kvm_syserr(kd, kd->program, "kvm_getfiles"); + _kvm_syserr(kd, kd->program, "kvm_getfile2"); return (NULL); } *cnt = size / esize; |