coap_block.c: Use correct format specifier when logging chunk size

This commit is contained in:
kkrentz authored and Jon Shallow committed 2023-08-16 21:04:34 +01:00
1 parent 8ca36cdf05
commit 45261daea9
1 file changed
+2 -2
+2 -2
View File
@@ -2632,7 +2632,7 @@ coap_handle_request_put_block(coap_context_t *context,
const uint8_t *rtag = rtag_opt ? coap_opt_value(rtag_opt) : NULL;
if (length > block.chunk_size) {
coap_log_debug("block: Oversized packet - reduced to %u from %zu\n",
coap_log_debug("block: Oversized packet - reduced to %"PRIu32" from %zu\n",
block.chunk_size, length);
length = block.chunk_size;
}
@@ -3414,7 +3414,7 @@ coap_handle_response_get_block(coap_context_t *context,
int updated_block;
if (length > block.chunk_size) {
coap_log_debug("block: Oversized packet - reduced to %u from %zu\n",
coap_log_debug("block: Oversized packet - reduced to %"PRIu32" from %zu\n",
block.chunk_size, length);
length = block.chunk_size;
}