fix: LOG format strings

Fix log format strings and remove no-format warning configuration.
This commit is contained in:
Euripedes Rocha committed 2023-06-30 10:17:32 +02:00
1 parent effd1e6705
commit a3b04f2d0a
5 files changed
+39 -29

No files matched your search

+8
View File
@@ -39,6 +39,14 @@
extern "C" {
#endif
#if CONFIG_NEWLIB_NANO_FORMAT
#define NEWLIB_NANO_COMPAT_FORMAT PRIu32
#define NEWLIB_NANO_COMPAT_CAST(size_t_var) (uint32_t)size_t_var
#else
#define NEWLIB_NANO_COMPAT_FORMAT "zu"
#define NEWLIB_NANO_COMPAT_CAST(size_t_var) size_t_var
#endif
#ifdef MQTT_DISABLE_API_LOCKS
# define MQTT_API_LOCK(c)
# define MQTT_API_UNLOCK(c)