git: 080b4e8a0cfc - main - kcov: use __func__ in KASSERT instead of old function name
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Mar 2022 15:47:48 UTC
The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=080b4e8a0cfce3579a660669967d200064822ca1 commit 080b4e8a0cfce3579a660669967d200064822ca1 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-03-07 14:48:38 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-03-07 15:47:27 +0000 kcov: use __func__ in KASSERT instead of old function name MFC after: 1 week Sponsored by: The FreeBSD Foundation --- sys/kern/kern_kcov.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/kern/kern_kcov.c b/sys/kern/kern_kcov.c index 1f8b62df7b4b..287071e8ac3a 100644 --- a/sys/kern/kern_kcov.c +++ b/sys/kern/kern_kcov.c @@ -210,8 +210,7 @@ trace_pc(uintptr_t ret) if (info->mode != KCOV_MODE_TRACE_PC) return; - KASSERT(info->kvaddr != 0, - ("__sanitizer_cov_trace_pc: NULL buf while running")); + KASSERT(info->kvaddr != 0, ("%s: NULL buf while running", __func__)); buf = (uint64_t *)info->kvaddr; @@ -242,8 +241,7 @@ trace_cmp(uint64_t type, uint64_t arg1, uint64_t arg2, uint64_t ret) if (info->mode != KCOV_MODE_TRACE_CMP) return (false); - KASSERT(info->kvaddr != 0, - ("__sanitizer_cov_trace_pc: NULL buf while running")); + KASSERT(info->kvaddr != 0, ("%s: NULL buf while running", __func__)); buf = (uint64_t *)info->kvaddr;