kcov: use __func__ in KASSERT instead of old function name
MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
afb44cb010
commit
080b4e8a0c
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user