summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-11-18 03:50:25 +0000
committerjdp <jdp@FreeBSD.org>1997-11-18 03:50:25 +0000
commit07854ddb8bc226f4b60c1866ba5b125927b1c088 (patch)
tree7150ef44b42881172222330a449a147443e01af2
parent7e0fa23aa5155d4e4bae37b268483e4cd3267106 (diff)
downloadFreeBSD-src-07854ddb8bc226f4b60c1866ba5b125927b1c088.zip
FreeBSD-src-07854ddb8bc226f4b60c1866ba5b125927b1c088.tar.gz
Add missing argument detected by "-Wformat". Make messages more
consistent.
-rw-r--r--usr.bin/gcore/aoutcore.c6
-rw-r--r--usr.bin/gcore/gcore.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/gcore/aoutcore.c b/usr.bin/gcore/aoutcore.c
index a40feff..3f8ccb9 100644
--- a/usr.bin/gcore/aoutcore.c
+++ b/usr.bin/gcore/aoutcore.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)gcore.c 8.2 (Berkeley) 9/23/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: gcore.c,v 1.6 1997/07/08 11:04:17 charnier Exp $";
#endif /* not lint */
/*
@@ -141,9 +141,9 @@ main(argc, argv)
errx(1, "%d: zombie", pid);
if (p->p_flag & P_WEXIT)
- errx(1, "process exiting");
+ errx(1, "%d: process exiting", pid);
if (p->p_flag & P_SYSTEM) /* Swapper or pagedaemon. */
- errx(1, "%d: system process");
+ errx(1, "%d: system process", pid);
if (corefile == NULL) {
(void)snprintf(fname, sizeof(fname), "core.%d", pid);
diff --git a/usr.bin/gcore/gcore.c b/usr.bin/gcore/gcore.c
index a40feff..3f8ccb9 100644
--- a/usr.bin/gcore/gcore.c
+++ b/usr.bin/gcore/gcore.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)gcore.c 8.2 (Berkeley) 9/23/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: gcore.c,v 1.6 1997/07/08 11:04:17 charnier Exp $";
#endif /* not lint */
/*
@@ -141,9 +141,9 @@ main(argc, argv)
errx(1, "%d: zombie", pid);
if (p->p_flag & P_WEXIT)
- errx(1, "process exiting");
+ errx(1, "%d: process exiting", pid);
if (p->p_flag & P_SYSTEM) /* Swapper or pagedaemon. */
- errx(1, "%d: system process");
+ errx(1, "%d: system process", pid);
if (corefile == NULL) {
(void)snprintf(fname, sizeof(fname), "core.%d", pid);
OpenPOWER on IntegriCloud