add int code to KePanic
This commit is contained in:
1 parent
6bff37746d
commit
b17c9ac854
10 files changed
+112
-99
No files matched your search
@@ -318,7 +318,7 @@ sys_thread_t sys_thread_new(const char* name, lwip_thread_fn thread, void* arg,
|
||||
(void)stacksize;
|
||||
|
||||
if (!thread)
|
||||
KePanic("lwIP: sys_thread_new called with null entry\n");
|
||||
KePanic(KE_PANIC_CODE_DRIVER, "lwIP: sys_thread_new called with null entry\n");
|
||||
|
||||
THREAD_PRIORITY kp = PriorityNormal;
|
||||
if (prio >= 2)
|
||||
@@ -344,7 +344,7 @@ sys_thread_t sys_thread_new(const char* name, lwip_thread_fn thread, void* arg,
|
||||
kp,
|
||||
&t);
|
||||
if (!KSUCCESS(st))
|
||||
KePanic("lwIP: failed to create kernel thread: 0x%x\n", st);
|
||||
KePanic(KE_PANIC_CODE_DRIVER, "lwIP: failed to create kernel thread: 0x%x\n", st);
|
||||
|
||||
return (sys_thread_t)t;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user