Skip to content

Commit 0af1ddf

Browse files
committed
Fix debug print warnings on ESP32
1 parent 64d65f8 commit 0af1ddf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/AsyncWebSocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#endif
3131

3232
#ifdef ASYNCWEBSERVER_DEBUG_TRACE
33-
#define DEBUG_PRINTFP(fmt, ...) Serial.printf_P(PSTR("[%d]{%d}" fmt "\n"), millis(), ESP.getFreeHeap(), ##__VA_ARGS__)
33+
#define DEBUG_PRINTFP(fmt, ...) Serial.printf_P(PSTR("[%u]{%d}" fmt "\n"), (unsigned) millis(), ESP.getFreeHeap(), ##__VA_ARGS__)
3434
#else
3535
#define DEBUG_PRINTFP(...)
3636
#endif

src/WebRequest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static const String SharedEmptyString = String();
3333
enum { PARSE_REQ_START, PARSE_REQ_HEADERS, PARSE_REQ_BODY, PARSE_REQ_END, PARSE_REQ_FAIL };
3434

3535
#ifdef ASYNCWEBSERVER_DEBUG_TRACE
36-
#define DEBUG_PRINTFP(fmt, ...) Serial.printf_P(PSTR("[%d]{%d}" fmt "\n"), millis(), ESP.getFreeHeap(), ##__VA_ARGS__)
36+
#define DEBUG_PRINTFP(fmt, ...) Serial.printf_P(PSTR("[%u]{%d}" fmt "\n"), (unsigned) millis(), ESP.getFreeHeap(), ##__VA_ARGS__)
3737
#else
3838
#define DEBUG_PRINTFP(...)
3939
#endif

src/WebResponses.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "cbuf.h"
2424

2525
#ifdef ASYNCWEBSERVER_DEBUG_TRACE
26-
#define DEBUG_PRINTFP(fmt, ...) Serial.printf_P(PSTR("[%d]" fmt), millis(), ##__VA_ARGS__)
26+
#define DEBUG_PRINTFP(fmt, ...) Serial.printf_P(PSTR("[%u]" fmt), (unsigned) millis(), ##__VA_ARGS__)
2727
#else
2828
#define DEBUG_PRINTFP(...)
2929
#endif

0 commit comments

Comments
 (0)