[realtek-amb] Fix or suppress compilation warnings
This commit is contained in:
@@ -7,4 +7,5 @@
|
||||
// this is included only by wifi_simple_config.c
|
||||
// which uses lwip_ntohl without parentheses
|
||||
// so the #define from lwip/def.h doesn't work
|
||||
#undef lwip_ntohl
|
||||
#define lwip_ntohl lwip_htonl
|
||||
|
||||
@@ -33,7 +33,7 @@ void hexdump(const uint8_t *buf, size_t len, uint32_t offset, uint8_t width) {
|
||||
uint16_t pos = 0;
|
||||
while (pos < len) {
|
||||
// print hex offset
|
||||
printf("%06x ", offset + pos);
|
||||
printf("%06lx ", offset + pos);
|
||||
// calculate current line width
|
||||
uint8_t lineWidth = MIN(width, len - pos);
|
||||
// print hexadecimal representation
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
/* Copyright (c) Kuba Szczodrzyński 2022-04-28. */
|
||||
|
||||
#include "lt_logger.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <sdk_private.h>
|
||||
|
||||
#if LT_HAS_PRINTF
|
||||
#include <printf/printf.h>
|
||||
|
||||
Reference in New Issue
Block a user