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:
parent
21254b2f40
commit
3ab356604d
|
@ -89,7 +89,7 @@ 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,
|
||||
void k_object_dump_error(int retval, const void *obj,
|
||||
struct k_object *ko, enum k_objects otype);
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue