From f05e60f338c838be725f165d52925b6dedb725d7 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 5 Jan 2022 13:49:04 -0600 Subject: [PATCH] dpp: Fix compilation on 32 bit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In file included from ./ell/ell.h:15, from ../../src/dpp.c:29: ../../src/dpp.c: In function ‘authenticate_request’: ../../ell/log.h:79:22: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 79 | l_log(L_LOG_DEBUG, "%s:%s() " format, __FILE__, \ | ^~~~~~~~~~ ../../ell/log.h:54:16: note: in definition of macro ‘l_log’ 54 | __func__, format "\n", ##__VA_ARGS__) | ^~~~~~ ../../ell/log.h:103:31: note: in expansion of macro ‘L_DEBUG_SYMBOL’ 103 | #define l_debug(format, ...) L_DEBUG_SYMBOL(__debug_desc, format, ##__VA_ARGS__) | ^~~~~~~~~~~~~~ ../../src/dpp.c:1235:3: note: in expansion of macro ‘l_debug’ 1235 | l_debug("I-Nonce has unexpected length %lu", i_nonce_len); | ^~~~~~~ --- src/dpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dpp.c b/src/dpp.c index a4a21b3d..5f25f1c2 100644 --- a/src/dpp.c +++ b/src/dpp.c @@ -1232,7 +1232,7 @@ static void authenticate_request(struct dpp_sm *dpp, const uint8_t *from, } if (i_nonce_len != dpp->nonce_len) { - l_debug("I-Nonce has unexpected length %lu", i_nonce_len); + l_debug("I-Nonce has unexpected length %zu", i_nonce_len); goto auth_request_failed; }