diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-05-17 21:03:56 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-05-17 21:03:56 +0000 |
commit | 00f67792d02e4de6292205a8ae45d4769efb85b5 (patch) | |
tree | 242d0af643a55e822d913a317f600ac0232bce24 /lib | |
parent | ee2fd913de06c461fa096150b9d41d2a4e29d43a (diff) |
Repair a fprintf message lacking one parameter.
Found by having a look at the recent TPE patches, which fixes libkvm
but not libkvm.old...
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkvm.old/kvm.c | 4 | ||||
-rw-r--r-- | lib/libkvm/kvm.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/libkvm.old/kvm.c b/lib/libkvm.old/kvm.c index f9f4e868ab8..ba48fa8f5c6 100644 --- a/lib/libkvm.old/kvm.c +++ b/lib/libkvm.old/kvm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm.c,v 1.12 2001/01/04 21:51:04 todd Exp $ */ +/* $OpenBSD: kvm.c,v 1.13 2001/05/17 21:03:49 miod Exp $ */ /* $NetBSD: kvm.c,v 1.2 1996/05/13 02:30:22 thorpej Exp $ */ /*- @@ -310,7 +310,7 @@ kvm_open(uf, mf, sf, flag, program) register kvm_t *kd; if ((kd = malloc(sizeof(*kd))) == NULL && program != NULL) { - (void)fprintf(stderr, "%s: %s\n", strerror(errno)); + (void)fprintf(stderr, "%s: %s\n", program, strerror(errno)); return (0); } kd->program = program; diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c index a81c27c5752..372db2b23cc 100644 --- a/lib/libkvm/kvm.c +++ b/lib/libkvm/kvm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm.c,v 1.20 2001/01/04 21:51:04 todd Exp $ */ +/* $OpenBSD: kvm.c,v 1.21 2001/05/17 21:03:55 miod Exp $ */ /* $NetBSD: kvm.c,v 1.43 1996/05/05 04:31:59 gwr Exp $ */ /*- @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94"; #else -static char *rcsid = "$OpenBSD: kvm.c,v 1.20 2001/01/04 21:51:04 todd Exp $"; +static char *rcsid = "$OpenBSD: kvm.c,v 1.21 2001/05/17 21:03:55 miod Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -662,7 +662,7 @@ kvm_open(uf, mf, sf, flag, program) register kvm_t *kd; if ((kd = malloc(sizeof(*kd))) == NULL && program != NULL) { - (void)fprintf(stderr, "%s: %s\n", strerror(errno)); + (void)fprintf(stderr, "%s: %s\n", program, strerror(errno)); return (0); } kd->program = program; |