[realtek-amb] Fix or suppress compilation warnings

This commit is contained in:
Kuba Szczodrzyński
2023-03-03 18:31:36 +01:00
parent e8c18f4e66
commit 47daefe675
7 changed files with 13 additions and 10 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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>