diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-04-24 14:56:44 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-04-24 14:56:44 +0000 |
commit | 142bf7284940daf25ec6217e26fd72f4412bb139 (patch) | |
tree | 8657e966a51581424febe5dfe8c356ff4dcbe9b5 /usr.sbin/btrace | |
parent | 0bc49280005bd9dd730dd292b845b3e11db3c33c (diff) |
Print given identifier in the error message when no matching probe exist.
Diffstat (limited to 'usr.sbin/btrace')
-rw-r--r-- | usr.sbin/btrace/btrace.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/btrace/btrace.c b/usr.sbin/btrace/btrace.c index ff59a507b39..fdf2a5eeda8 100644 --- a/usr.sbin/btrace/btrace.c +++ b/usr.sbin/btrace/btrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: btrace.c,v 1.17 2020/04/23 18:36:51 mpi Exp $ */ +/* $OpenBSD: btrace.c,v 1.18 2020/04/24 14:56:43 mpi Exp $ */ /* * Copyright (c) 2019 - 2020 Martin Pieuchot <mpi@openbsd.org> @@ -411,8 +411,10 @@ rules_setup(int fd) bp = r->br_probe; dtpi_cache(fd); dtpi = dtpi_get_by_value(bp->bp_prov, bp->bp_func, bp->bp_name); - if (dtpi == NULL) - errx(1, "probe not found"); + if (dtpi == NULL) { + errx(1, "probe '%s:%s:%s' not found", bp->bp_prov, + bp->bp_func, bp->bp_name); + } dtrq = calloc(1, sizeof(*dtrq)); if (dtrq == NULL) |