mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-07 18:12:55 +03:00
coap_block.c: Use correct format specifier when logging chunk size
This commit is contained in:
1 parent
8ca36cdf05
commit
45261daea9
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user