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,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 ko If retval=-EPERM, struct k_object * that was looked up, or NULL
|
||||||
* @param otype Expected type of the kernel object
|
* @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);
|
struct k_object *ko, enum k_objects otype);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Kernel object validation function
|
* Kernel object validation function
|
||||||
|
@ -437,7 +437,7 @@ static inline int k_object_validation_check(struct k_object *ko,
|
||||||
|
|
||||||
#ifdef CONFIG_LOG
|
#ifdef CONFIG_LOG
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
z_dump_object_error(ret, obj, ko, otype);
|
k_object_dump_error(ret, obj, ko, otype);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
ARG_UNUSED(obj);
|
ARG_UNUSED(obj);
|
||||||
|
|
|
@ -1888,7 +1888,7 @@ static bool thread_obj_validate(struct k_thread *thread)
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
#ifdef CONFIG_LOG
|
#ifdef CONFIG_LOG
|
||||||
z_dump_object_error(ret, thread, ko, K_OBJ_THREAD);
|
k_object_dump_error(ret, thread, ko, K_OBJ_THREAD);
|
||||||
#endif
|
#endif
|
||||||
Z_OOPS(K_SYSCALL_VERIFY_MSG(ret, "access denied"));
|
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");
|
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)
|
enum k_objects otype)
|
||||||
{
|
{
|
||||||
switch (retval) {
|
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);
|
ret = k_object_validate(ko, K_OBJ_ANY, _OBJ_INIT_ANY);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
#ifdef CONFIG_LOG
|
#ifdef CONFIG_LOG
|
||||||
z_dump_object_error(ret, obj, ko, otype);
|
k_object_dump_error(ret, obj, ko, otype);
|
||||||
#endif
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue