Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static int terminate_log_line(char *buf, int len)

#define LOG_BUF_LEN 192

__format_printf(5, 6)
__weak __format_printf(5, 6)
int __logger_log(logger_t *ctx, int log_level, const char *file, unsigned long line,
const char *fmt, ...)
{
Expand All @@ -111,7 +111,7 @@ int __logger_log(logger_t *ctx, int log_level, const char *file, unsigned long l
{
file = filename + 1;
}

if (!ctx->cb) {
if (log_level < LOG_EMERG ||
log_level >= LOG_MAX_LEVEL ||
Expand Down
2 changes: 1 addition & 1 deletion src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ int add_iso8601_utc_datetime(char* buf, size_t size)
return r;
}

#elif defined(__linux__) || defined(__APPLE__)
#elif defined(__linux__) || defined(__APPLE__) || defined(ESP_PLATFORM)

#include <sys/time.h>
#include <time.h>
Expand Down