mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-15 17:25:06 +00:00
second attempt
This commit is contained in:
parent
1abfa0644b
commit
1adc7753be
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ LogEntry logEntries[TA_LOG_SIZE];
|
|||
|
||||
static constexpr unsigned int TA_LOG_MASK=TA_LOG_SIZE-1;
|
||||
|
||||
int writeLog(int level, const char* msg, fmt::printf_args& args) {
|
||||
int writeLog(int level, const char* msg, fmt::printf_args args) {
|
||||
time_t thisMakesNoSense=time(NULL);
|
||||
int pos=logPosition;
|
||||
logPosition=(logPosition+1)&TA_LOG_MASK;
|
||||
|
|
|
@ -49,7 +49,7 @@ struct LogEntry {
|
|||
ready(false) {}
|
||||
};
|
||||
|
||||
int writeLog(int level, const char* msg, fmt::printf_args& args);
|
||||
int writeLog(int level, const char* msg, fmt::printf_args args);
|
||||
|
||||
extern LogEntry logEntries[TA_LOG_SIZE];
|
||||
|
||||
|
|
Loading…
Reference in a new issue