summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2021-01-25 06:56:00 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2021-01-25 06:56:00 +0000
commit7ce8f11a523435cda8793aec2ef8d2ba8e24d09b (patch)
treed04cce34d7cbfb2c29cc782a0889d28d2132970f
parent145b0d7519de911f2e94be837ca89a3724dea603 (diff)
fix filtering on kstat unit numbers
-rw-r--r--usr.bin/kstat/kstat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/kstat/kstat.c b/usr.bin/kstat/kstat.c
index 5ea57763dd8..45081540d5e 100644
--- a/usr.bin/kstat/kstat.c
+++ b/usr.bin/kstat/kstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kstat.c,v 1.7 2020/12/29 23:26:48 dlg Exp $ */
+/* $OpenBSD: kstat.c,v 1.8 2021/01/25 06:55:59 dlg Exp $ */
/*
* Copyright (c) 2020 David Gwynne <dlg@openbsd.org>
@@ -231,11 +231,11 @@ kstat_filter_parse(char *arg)
kf->kf_unit =
strtonum(argv[3], 0, 0xffffffffU, &errstr);
if (errstr != NULL) {
- errx(1, "%s:%s:%s:%s: instance %s: %s",
+ errx(1, "%s:%s:%s:%s: unit %s: %s",
argv[0], argv[1], argv[2], argv[3],
- argv[1], errstr);
+ argv[3], errstr);
}
- SET(kf->kf_flags, KSTAT_FILTER_F_INST);
+ SET(kf->kf_flags, KSTAT_FILTER_F_UNIT);
}
break;
default: