fix compile warning
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
#define TOS_OFFSET_OF_FIELD(type, field) \
|
||||
|
@@ -19,6 +19,7 @@
|
||||
#define _TOS_KTYPES_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
typedef uint8_t k_prio_t;
|
||||
typedef uint8_t k_stack_t;
|
||||
|
@@ -440,9 +440,9 @@ __DEBUG__ __STATIC_INLINE__ void task_default_walker(k_task_t *task)
|
||||
tos_kprintln("tsk stat: %s", state_str);
|
||||
|
||||
tos_kprintln("stk size: %d", task->stk_size);
|
||||
tos_kprintln("stk base: 0x%x", task->stk_base);
|
||||
tos_kprintln("stk top : 0x%x", (cpu_addr_t)task->stk_base + task->stk_size);
|
||||
tos_kprintln("");
|
||||
tos_kprintln("stk base: 0x%p", task->stk_base);
|
||||
tos_kprintln("stk top : 0x%p", task->stk_base + task->stk_size);
|
||||
tos_kprintf("\n");
|
||||
}
|
||||
|
||||
#endif /* _TOS_TASK_H_ */
|
||||
|
Reference in New Issue
Block a user