valist in logMsg, test on platform

This commit is contained in:
2020-10-29 20:50:50 +01:00
parent b55d74a9cd
commit e476930526
3 changed files with 24 additions and 13 deletions

View File

@ -1,6 +1,8 @@
#ifndef _LOGGER_H_
#define _LOGGER_H_
// initialize the logger, creates a ringbuffer
void logInit();
@ -9,7 +11,7 @@ void logFree();
// log a message, make sure it is a null-terminated string
// return value can be ignored, it is only used in test
int logMsg(char *msg);
int logMsg(const char *format, ...);
// reads the ringbuffer and transfers data to output channel
// call this from the idle-loop