syscall: rename z_dump_object_error -> k_object_dump_error

Rename internal API to not use z_/Z_.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2023-09-27 10:51:23 +00:00 committed by Carles Cufí
parent 21254b2f40
commit 3ab356604d
4 changed files with 6 additions and 6 deletions

View file

@ -89,8 +89,8 @@ int k_object_validate(struct k_object *ko, enum k_objects otype,
* @param ko If retval=-EPERM, struct k_object * that was looked up, or NULL
* @param otype Expected type of the kernel object
*/
void z_dump_object_error(int retval, const void *obj,
struct k_object *ko, enum k_objects otype);
void k_object_dump_error(int retval, const void *obj,
struct k_object *ko, enum k_objects otype);
/**
* Kernel object validation function
@ -437,7 +437,7 @@ static inline int k_object_validation_check(struct k_object *ko,
#ifdef CONFIG_LOG
if (ret != 0) {
z_dump_object_error(ret, obj, ko, otype);
k_object_dump_error(ret, obj, ko, otype);
}
#else
ARG_UNUSED(obj);

View file

@ -1888,7 +1888,7 @@ static bool thread_obj_validate(struct k_thread *thread)
return true;
default:
#ifdef CONFIG_LOG
z_dump_object_error(ret, thread, ko, K_OBJ_THREAD);
k_object_dump_error(ret, thread, ko, K_OBJ_THREAD);
#endif
Z_OOPS(K_SYSCALL_VERIFY_MSG(ret, "access denied"));
}

View file

@ -661,7 +661,7 @@ static void dump_permission_error(struct k_object *ko)
LOG_HEXDUMP_ERR(ko->perms, sizeof(ko->perms), "permission bitmap");
}
void z_dump_object_error(int retval, const void *obj, struct k_object *ko,
void k_object_dump_error(int retval, const void *obj, struct k_object *ko,
enum k_objects otype)
{
switch (retval) {

View file

@ -24,7 +24,7 @@ static struct k_object *validate_kernel_object(const void *obj,
ret = k_object_validate(ko, K_OBJ_ANY, _OBJ_INIT_ANY);
if (ret != 0) {
#ifdef CONFIG_LOG
z_dump_object_error(ret, obj, ko, otype);
k_object_dump_error(ret, obj, ko, otype);
#endif
return NULL;
}