Fit w5500 to lwip, fix some unintialized params and printf warning.
This commit is contained in:
@@ -46,7 +46,7 @@ extern "C" {
|
||||
#define FILESYS_DEBUG 0
|
||||
#define NETDEV_DEBUG 0
|
||||
#define WEBNET_DEBUG 0
|
||||
#define WIZNET_DEBUG 1
|
||||
#define WIZNET_DEBUG 0
|
||||
|
||||
#define SYS_KDEBUG_LOG(section, information) \
|
||||
do { \
|
||||
|
||||
@@ -94,7 +94,7 @@ static x_err_t _MsgQueueSend(struct MsgQueue* mq,
|
||||
NULL_PARAM_CHECK(mq);
|
||||
NULL_PARAM_CHECK(buffer);
|
||||
|
||||
SYS_KDEBUG_LOG(MSGQUEUE_DEBUG, ("[%s] mq_num_msgs: %d, block size: %d, needed size: %d\n", __func__, mq->num_msgs, mq->each_len, size));
|
||||
SYS_KDEBUG_LOG(MSGQUEUE_DEBUG, ("[%s] mq_num_msgs: %d, block size: %d, needed size: %lu\n", __func__, mq->num_msgs, mq->each_len, size));
|
||||
|
||||
if (size > mq->each_len)
|
||||
return -ERROR;
|
||||
|
||||
@@ -175,12 +175,12 @@ SWITCH:
|
||||
HOOK(hook.assign.hook_Assign,(runningtask, new_task));
|
||||
|
||||
SYS_KDEBUG_LOG(KDBG_SCHED,
|
||||
("[%d]switch to priority#%d "
|
||||
"task:%.*s(sp:0x%08x), "
|
||||
"from task:%.*s(sp: 0x%08x)\n",
|
||||
isrManager.done->getCounter(), highest_prio,
|
||||
NAME_NUM_MAX, new_task->task_base_info.name, new_task->stack_point,
|
||||
NAME_NUM_MAX, runningtask->task_base_info.name, runningtask->stack_point));
|
||||
("[%d]switch to priority#%ld "
|
||||
"task:%.*s(sp:0x%8p), "
|
||||
"from task:%.*s(sp: 0x%8p)\n",
|
||||
isrManager.done->getCounter(), highest_prio,
|
||||
NAME_NUM_MAX, new_task->task_base_info.name, new_task->stack_point,
|
||||
NAME_NUM_MAX, runningtask->task_base_info.name, runningtask->stack_point));
|
||||
|
||||
Assign.smp_assign_done->SwitchToNew(runningtask,new_task);
|
||||
}
|
||||
@@ -442,12 +442,12 @@ x_err_t YieldOsAssign(void)
|
||||
HOOK(hook.assign.hook_Assign,(runningtask, new_task));
|
||||
|
||||
SYS_KDEBUG_LOG(KDBG_SCHED,
|
||||
("[%d]switch to priority#%d "
|
||||
"task:%.*s(sp:0x%08x), "
|
||||
"from task:%.*s(sp: 0x%08x)\n",
|
||||
isrManager.done->getCounter(), highest_prio,
|
||||
NAME_NUM_MAX, new_task->task_base_info.name, new_task->stack_point,
|
||||
NAME_NUM_MAX, runningtask->task_base_info.name, runningtask->stack_point));
|
||||
("[%d]switch to priority#%ld "
|
||||
"task:%.*s(sp:0x%8p), "
|
||||
"from task:%.*s(sp: 0x%8p)\n",
|
||||
isrManager.done->getCounter(), highest_prio,
|
||||
NAME_NUM_MAX, new_task->task_base_info.name, new_task->stack_point,
|
||||
NAME_NUM_MAX, runningtask->task_base_info.name, runningtask->stack_point));
|
||||
|
||||
Assign.smp_assign_done->SwitchToNew(runningtask,new_task);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user