git: 6841bc7b8c02 - stable/13 - kcov: use __func__ in KASSERT instead of old function name
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 May 2022 18:21:27 UTC
The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=6841bc7b8c02d581a96ef2f591bfc6f01f96e9bb commit 6841bc7b8c02d581a96ef2f591bfc6f01f96e9bb Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-03-07 14:48:38 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-05-03 18:20:44 +0000 kcov: use __func__ in KASSERT instead of old function name MFC after: 1 week Sponsored by: The FreeBSD Foundation (cherry picked from commit 080b4e8a0cfce3579a660669967d200064822ca1) --- 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 23e0da4cdb79..cd1547f2ce43 100644 --- a/sys/kern/kern_kcov.c +++ b/sys/kern/kern_kcov.c @@ -209,8 +209,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; @@ -241,8 +240,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;