3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-03 01:48:49 +02:00

dpp: Fix compilation on 32 bit

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);
      |   ^~~~~~~
This commit is contained in:
Denis Kenzior 2022-01-05 13:49:04 -06:00
parent 994c18c44e
commit f05e60f338

View File

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