Skip to content

Commit fc0d8da

Browse files
authored
Merge pull request #38 from zucchettiaxess/ESP_PLATFORM-support-RTOSbased
2 parents d832ba5 + b8e1510 commit fc0d8da

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/logger.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static int terminate_log_line(char *buf, int len)
9595

9696
#define LOG_BUF_LEN 192
9797

98-
__format_printf(5, 6)
98+
__weak __format_printf(5, 6)
9999
int __logger_log(logger_t *ctx, int log_level, const char *file, unsigned long line,
100100
const char *fmt, ...)
101101
{
@@ -111,7 +111,7 @@ int __logger_log(logger_t *ctx, int log_level, const char *file, unsigned long l
111111
{
112112
file = filename + 1;
113113
}
114-
114+
115115
if (!ctx->cb) {
116116
if (log_level < LOG_EMERG ||
117117
log_level >= LOG_MAX_LEVEL ||

src/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ int add_iso8601_utc_datetime(char* buf, size_t size)
131131
return r;
132132
}
133133

134-
#elif defined(__linux__) || defined(__APPLE__)
134+
#elif defined(__linux__) || defined(__APPLE__) || defined(ESP_PLATFORM)
135135

136136
#include <sys/time.h>
137137
#include <time.h>

0 commit comments

Comments
 (0)