From 5dead9d93fa67df4e031115b65c320a5725dbca6 Mon Sep 17 00:00:00 2001 From: mpi Date: Thu, 9 Sep 2021 09:43:49 +0000 Subject: [PATCH] Handle new NIL type in ba_name(). Fix filter debugging. --- usr.sbin/btrace/btrace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/btrace/btrace.c b/usr.sbin/btrace/btrace.c index cd63d6581a3..65e2a5257c0 100644 --- a/usr.sbin/btrace/btrace.c +++ b/usr.sbin/btrace/btrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: btrace.c,v 1.52 2021/09/09 07:17:31 mpi Exp $ */ +/* $OpenBSD: btrace.c,v 1.53 2021/09/09 09:43:49 mpi Exp $ */ /* * Copyright (c) 2019 - 2021 Martin Pieuchot @@ -1157,6 +1157,8 @@ const char * ba_name(struct bt_arg *ba) { switch (ba->ba_type) { + case B_AT_NIL: + return "0"; case B_AT_VAR: case B_AT_MAP: break; -- 2.20.1