don't forget to put the program name in the error message!

This commit is contained in:
mikel 1997-06-20 04:33:25 +00:00
parent e6077a7689
commit 81fe6cd23a

View File

@ -1,4 +1,4 @@
/* $NetBSD: kvm.c,v 1.5 1997/01/23 14:02:54 mrg Exp $ */
/* $NetBSD: kvm.c,v 1.6 1997/06/20 04:33:25 mikel Exp $ */
/*-
* Copyright (c) 1989, 1992, 1993
@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
#else
static char rcsid[] = "$NetBSD: kvm.c,v 1.5 1997/01/23 14:02:54 mrg Exp $";
static char rcsid[] = "$NetBSD: kvm.c,v 1.6 1997/06/20 04:33:25 mikel Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@ -303,7 +303,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;