diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-09-04 18:37:42 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-09-04 18:37:42 +0200 |
commit | fc98d3809e0db36d634f290417b9152f87f83e3e (patch) | |
tree | d7c0cbb883571dccfcd4028d8b7b2a2144fc2d2b /fw/fe310/phone/app/log.h | |
parent | 07e6abe5d5a1813298805bea2bf9d62ad895aaaa (diff) |
new phone firmware
Diffstat (limited to 'fw/fe310/phone/app/log.h')
-rw-r--r-- | fw/fe310/phone/app/log.h | 6 |
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 ) |