#include "cfg/cfg_lwip.h"
-#define LOG_LEVEL 3
-#define LOG_FORMAT 0
+#define LOG_LEVEL 3 //INFO
+#define LOG_FORMAT 0 //TERSE
#include <cfg/log.h>
#include <drv/timer.h>
void sys_mbox_post(sys_mbox_t mbox, void *data)
{
- if (UNLIKELY(sys_mbox_trypost(mbox, data) == ERR_MEM))
- LOG_ERR("out of messages!\n");
+ sys_mbox_trypost(mbox, data);
}
/*
PROC_ATOMIC(msg = (IpMsg *)list_remHead(&free_msg));
if (UNLIKELY(!msg))
+ {
+ LOG_ERR("out of messages!\n");
return ERR_MEM;
+ }
msg->data = data;
msg_lockPort(mbox);
if (UNLIKELY(!thread_node))
{
proc_permit();
+ LOG_ERR("Out of threads!\n");
return NULL;
}
ADDHEAD(&used_thread, &thread_node->node);