summaryrefslogtreecommitdiff
path: root/fw/fe310/phone/app/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/phone/app/log.h')
-rw-r--r--fw/fe310/phone/app/log.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fw/fe310/phone/app/log.h b/fw/fe310/phone/app/log.h
new file mode 100644
index 0000000..48ac5f0
--- /dev/null
+++ b/fw/fe310/phone/app/log.h
@@ -0,0 +1,6 @@
+#define APP_LOG_DEBUG 1
+#define APP_LOG_INFO 2
+#define APP_LOG_ERR 3
+
+#define APP_LOG_LEVEL APP_LOG_DEBUG
+#define APP_LOG(l, ...) (l >= APP_LOG_LEVEL ? fprintf(stderr, __VA_ARGS__) : 0 )