- Add missing include header
. logm.c : sched.h for sched_lock/unlock, tinyara/arch.h for up_interrupt_context
. logm_tashcmds.c : string.h for strcmp
- Delete logm_tash definition from logm.h because it is used in a file only
*
****************************************************************************/
+#include <tinyara/config.h>
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
+#ifdef CONFIG_ARCH_LOWPUTC
+#include <sched.h>
+#endif
#include <arch/irq.h>
-#include <tinyara/config.h>
+#include <tinyara/arch.h>
#include <tinyara/logm.h>
#include <tinyara/streams.h>
#ifdef CONFIG_LOGM_TIMESTAMP
************************************************************************************/
int logm_task(int argc, char *argv[]);
void logm_register_tashcmds(void);
-static int logm_tash(int argc, char **args);
#undef EXTERN
#if defined(__cplusplus)
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
+#include <string.h>
#include <apps/shell/tash.h>
#include <tinyara/logm.h>
#include "logm.h"
+static int logm_tash(int argc, char **args);
+
const static tash_cmdlist_t logm_tashmds[] = {
{"logm", logm_tash, TASH_EXECMD_SYNC},
{NULL, NULL, 0}