From d572c2d2856a39430cf9ffd4962c834c80b426a9 Mon Sep 17 00:00:00 2001 From: dlg Date: Mon, 25 Jan 2021 06:55:59 +0000 Subject: [PATCH] fix filtering on kstat unit numbers --- usr.bin/kstat/kstat.c | 8 ++++---- 1 file 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 @@ -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: -- 2.20.1