summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-04-13 19:20:24 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-04-13 19:20:24 +0000
commit689b7c5f64804c692daa5f8b65e072361821e2fe (patch)
tree0846dc870ee1f5fb7f689bb24c3ced53efb148dd /bin
parentdac1a3e55255ecea773b2caf6fb9b30aa25c2ae6 (diff)
Userland gets 7 chars of wchan, not 6; noticed by thib@
ok mickey@ otto@
Diffstat (limited to 'bin')
-rw-r--r--bin/ps/keyword.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index 1a418c8521c..9da026c4cc6 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: keyword.c,v 1.26 2006/11/29 12:34:19 miod Exp $ */
+/* $OpenBSD: keyword.c,v 1.27 2007/04/13 19:20:23 miod Exp $ */
/* $NetBSD: keyword.c,v 1.12.6.1 1996/05/30 21:25:13 cgd Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)keyword.c 8.5 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: keyword.c,v 1.26 2006/11/29 12:34:19 miod Exp $";
+static char rcsid[] = "$OpenBSD: keyword.c,v 1.27 2007/04/13 19:20:23 miod Exp $";
#endif
#endif /* not lint */
@@ -127,7 +127,7 @@ VAR var[] = {
{"nswap", "NSWAP", NULL, USER, pvar, 4, 0, POFF(p_uru_nswap), UINT64, "lld"},
{"nvcsw", "NVCSW", NULL, USER, pvar, 5, 0, POFF(p_uru_nvcsw), UINT64, "lld"},
/* XXX */
- {"nwchan", "WCHAN", NULL, 0, pvar, 6, 0, POFF(p_wchan), UINT64, "llx"},
+ {"nwchan", "WCHAN", NULL, 0, pvar, 7, 0, POFF(p_wchan), UINT64, "llx"},
{"oublk", "OUBLK", NULL, USER, pvar, 4, 0, POFF(p_uru_oublock), UINT64, "lld"},
{"oublock", "", "oublk"},
/* XXX */
@@ -179,7 +179,7 @@ VAR var[] = {
{"usrpri", "", "upr"},
{"vsize", "", "vsz"},
{"vsz", "VSZ", NULL, 0, vsize, 5},
- {"wchan", "WCHAN", NULL, LJUST, wchan, 6},
+ {"wchan", "WCHAN", NULL, LJUST, wchan, 7},
{"xstat", "XSTAT", NULL, 0, pvar, 4, 0, POFF(p_xstat), UINT16, "x"},
{""},
};