provide squeezelite error log in UI

This commit is contained in:
philippe44
2023-03-29 23:02:16 -07:00
parent a9a9018794
commit cad286c8d7
12 changed files with 53 additions and 37 deletions

View File

@@ -51,6 +51,10 @@ extern u8_t custom_player_id;
// to force some special buffer attribute
#define EXT_BSS __attribute__((section(".ext_ram.bss")))
// otherwise just leave it empty
void em_logprint(const char *fmt, ...);
#define LOG_ERROR(fmt, ...) em_logprint("%s %s:%d " fmt "\n", logtime(), __FUNCTION__, __LINE__, ##__VA_ARGS__);
// all exit() calls are made from main thread (or a function called in main thread)
void embedded_exit(int code);
#define exit(code) do { embedded_exit(code); } while (0)