diff options
Diffstat (limited to 'apps/examples')
-rw-r--r-- | apps/examples/buttons/buttons_main.c | 18 | ||||
-rw-r--r-- | apps/examples/cc3000/cc3000basic.c | 8 |
2 files changed, 14 insertions, 12 deletions
diff --git a/apps/examples/buttons/buttons_main.c b/apps/examples/buttons/buttons_main.c index 9aab98008..a76c173a2 100644 --- a/apps/examples/buttons/buttons_main.c +++ b/apps/examples/buttons/buttons_main.c @@ -305,7 +305,8 @@ static void show_buttons(uint8_t oldset, uint8_t newset) * interrupt handler. */ - lowsyslog(" %s %s\n", g_buttoninfo[BUTTON_INDEX(i)].name, state); + lowsyslog(LOG_INFO, " %s %s\n", + g_buttoninfo[BUTTON_INDEX(i)].name, state); } } } @@ -315,8 +316,9 @@ static void button_handler(int id, int irq) { uint8_t newset = board_buttons(); - lowsyslog("IRQ:%d Button %d:%s SET:%02x:\n", + lowsyslog(LOG_INFO, "IRQ:%d Button %d:%s SET:%02x:\n", irq, id, g_buttoninfo[BUTTON_INDEX(id)].name, newset); + show_buttons(g_oldset, newset); g_oldset = newset; } @@ -416,7 +418,7 @@ int buttons_main(int argc, char *argv[]) maxbuttons = strtol(argv[1], NULL, 10); } - lowsyslog("maxbuttons: %d\n", maxbuttons); + lowsyslog(LOG_INFO, "maxbuttons: %d\n", maxbuttons); #endif /* Initialize the button GPIOs */ @@ -430,9 +432,9 @@ int buttons_main(int argc, char *argv[]) { xcpt_t oldhandler = board_button_irq(i, g_buttoninfo[BUTTON_INDEX(i)].handler); - /* Use lowsyslog() for compatibility with interrrupt handler output. */ + /* Use lowsyslog() for compatibility with interrupt handler output. */ - lowsyslog("Attached handler at %p to button %d [%s], oldhandler:%p\n", + lowsyslog(LOG_INFO, "Attached handler at %p to button %d [%s], oldhandler:%p\n", g_buttoninfo[BUTTON_INDEX(i)].handler, i, g_buttoninfo[BUTTON_INDEX(i)].name, oldhandler); @@ -445,7 +447,7 @@ int buttons_main(int argc, char *argv[]) if (oldhandler != NULL) { - lowsyslog("WARNING: oldhandler:%p is not NULL! " + lowsyslog(LOG_INFO, "WARNING: oldhandler:%p is not NULL! " "Button events may be lost or aliased!\n", oldhandler); } @@ -475,11 +477,11 @@ int buttons_main(int argc, char *argv[]) flags = irqsave(); - /* Use lowsyslog() for compatibility with interrrupt handler + /* Use lowsyslog() for compatibility with interrupt handler * output. */ - lowsyslog("POLL SET:%02x:\n", newset); + lowsyslog(LOG_INFO, "POLL SET:%02x:\n", newset); show_buttons(g_oldset, newset); g_oldset = newset; irqrestore(flags); diff --git a/apps/examples/cc3000/cc3000basic.c b/apps/examples/cc3000/cc3000basic.c index 19ff1a8c8..db6215762 100644 --- a/apps/examples/cc3000/cc3000basic.c +++ b/apps/examples/cc3000/cc3000basic.c @@ -195,10 +195,10 @@ static void _stkmon_disp(FAR struct tcb_s *tcb, FAR void *arg) #if CONFIG_TASK_NAME_SIZE > 0 strncpy(buff,tcb->name,CONFIG_TASK_NAME_SIZE); buff[CONFIG_TASK_NAME_SIZE] = '\0'; - syslog("%5d %6d %6d %s\n", + syslog(LOG_INFO, "%5d %6d %6d %s\n", tcb->pid, tcb->adj_stack_size, up_check_tcbstack(tcb), buff); #else - syslog("%5d %6d %6d\n", + syslog(LOG_INFO, "%5d %6d %6d\n", tcb->pid, tcb->adj_stack_size, up_check_tcbstack(tcb)); #endif } @@ -256,9 +256,9 @@ static bool wait_on(long timeoutMs, volatile unsigned long *what, void stkmon_disp(void) { #if CONFIG_TASK_NAME_SIZE > 0 - syslog("%-5s %-6s %-6s %s\n", "PID", "SIZE", "USED", "THREAD NAME"); + syslog(LOG_INFO, "%-5s %-6s %-6s %s\n", "PID", "SIZE", "USED", "THREAD NAME"); #else - syslog("%-5s %-6s %-6s\n", "PID", "SIZE", "USED"); + syslog(LOG_INFO, "%-5s %-6s %-6s\n", "PID", "SIZE", "USED"); #endif sched_foreach(_stkmon_disp, NULL); } |