From bc4c75060b86334bbfd9cd94c59b030f96a7ce95 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Sat, 6 Aug 2022 10:58:56 +0100 Subject: [PATCH] coap_mbedtls.c: Fix output type of a log message --- src/coap_mbedtls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coap_mbedtls.c b/src/coap_mbedtls.c index d8aa382f..c1e09017 100644 --- a/src/coap_mbedtls.c +++ b/src/coap_mbedtls.c @@ -74,7 +74,7 @@ #ifdef HAVE_INTTYPES_H #include #else /* ! HAVE_INTTYPES_H */ -#define PRIu32 "u" +#define PRIx32 "x" #endif /* ! HAVE_INTTYPES_H */ #define mbedtls_malloc(a) malloc(a) @@ -484,7 +484,7 @@ cert_verify_callback_mbedtls(void *data, mbedtls_x509_crt *crt, while (tcp) { *tcp = '\000'; coap_log(LOG_WARNING, - " %s: %s: issue 0x%" PRIu32 ": '%s' depth %d\n", + " %s: %s: issue 0x%" PRIx32 ": '%s' depth %d\n", coap_session_str(c_session), buf, *flags, cn ? cn : "?", depth); tcp = strchr(tcp+1, '\n');