summaryrefslogtreecommitdiff
path: root/usr.bin/kdump/kdump.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-07-18 09:36:51 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-07-18 09:36:51 +0000
commite05990b64643e87848b0dce135ca2fb307685c12 (patch)
treecf04f85114e0541b01e318fc1950f23e1d49584c /usr.bin/kdump/kdump.c
parent2c847ce2ccc6b0c0da8fe944714c0935b29f341c (diff)
Add 'p' trace point for KTRFAC_PLEDGE, as noted by
Michal Mazurek <akfaew@jasminek.net> While here, fix handling of -t+ in ltrace.
Diffstat (limited to 'usr.bin/kdump/kdump.c')
-rw-r--r--usr.bin/kdump/kdump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index ca2a4790dbb..da5c51ce0db 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kdump.c,v 1.128 2016/06/02 22:47:13 tedu Exp $ */
+/* $OpenBSD: kdump.c,v 1.129 2016/07/18 09:36:50 guenther Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -192,7 +192,7 @@ main(int argc, char *argv[])
timestamp = timestamp == 2 ? 3 : 1;
break;
case 't':
- trpoints = getpoints(optarg);
+ trpoints = getpoints(optarg, DEF_POINTS);
if (trpoints < 0)
errx(1, "unknown trace point in %s", optarg);
break;
@@ -1384,7 +1384,7 @@ usage(void)
extern char *__progname;
fprintf(stderr, "usage: %s "
"[-dHlnRTXx] [-f file] [-m maxdata] [-p pid]\n"
- "%*s[-t [cinstuxX+]]\n",
+ "%*s[-t [cinpstuxX+]]\n",
__progname, (int)(sizeof("usage: ") + strlen(__progname)), "");
exit(1);
}