userspace: use unsigned types for k_object fields
Fixes issues where these were getting sign-extended when dumped out, resulting in (for example) "ffffffff" being printed when it ought to be "ff". Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
6f99bdb02a
commit
a811af337b
1 changed files with 3 additions and 3 deletions
|
@ -174,9 +174,9 @@ enum k_objects {
|
|||
* _k_object_find() */
|
||||
struct _k_object {
|
||||
char *name;
|
||||
char perms[CONFIG_MAX_THREAD_BYTES];
|
||||
char type;
|
||||
char flags;
|
||||
u8_t perms[CONFIG_MAX_THREAD_BYTES];
|
||||
u8_t type;
|
||||
u8_t flags;
|
||||
} __packed;
|
||||
|
||||
#define K_OBJ_FLAG_INITIALIZED BIT(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue