summaryrefslogtreecommitdiffstats
path: root/streaming/compression.c
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2022-09-26 13:49:56 +0000
committerGitHub <noreply@github.com>2022-09-26 13:49:56 +0000
commit71cb1ad68707718671ef57c901dfa2041f15bbe6 (patch)
tree71f0cb5819b66a0864e1044678492ea044beed3c /streaming/compression.c
parent570a716100f313026c127e9dbf3b9c65e423e3a3 (diff)
Fix warnings during compilation time on ARM (32 bits) (#13681)
Diffstat (limited to 'streaming/compression.c')
-rw-r--r--streaming/compression.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/streaming/compression.c b/streaming/compression.c
index 302b0b1809..cae370817a 100644
--- a/streaming/compression.c
+++ b/streaming/compression.c
@@ -67,7 +67,7 @@ static size_t lz4_compressor_compress(struct compressor_state *state, const char
return 0;
if(unlikely(size > LZ4_MAX_MSG_SIZE)) {
- error("%s: Compression Failed - Message size %lu above compression buffer limit: %d", STREAM_COMPRESSION_MSG, size, LZ4_MAX_MSG_SIZE);
+ error("%s: Compression Failed - Message size %lu above compression buffer limit: %d", STREAM_COMPRESSION_MSG, (long unsigned int) size, LZ4_MAX_MSG_SIZE);
return 0;
}
@@ -239,7 +239,8 @@ static size_t lz4_decompressor_put(struct decompressor_state *state, const char
if (state->buffer_pos + size > state->buffer_len) {
error("STREAM: Decompressor buffer overflow %lu + %lu > %lu",
- state->buffer_pos, size, state->buffer_len);
+ (long unsigned int) state->buffer_pos, (long unsigned int) size,
+ (long unsigned int) state->buffer_len);
size = state->buffer_len - state->buffer_pos;
}
memcpy(state->buffer + state->buffer_pos, data, size);
@@ -299,7 +300,8 @@ static size_t lz4_decompressor_decompress(struct decompressor_state *state)
(void)saving;
if (old_avg_saving != avg_saving || old_avg_size != avg_size){
- debug(D_STREAM, "%s: Saving: %lu%% (avg. %lu%%), avg.size: %lu", STREAM_COMPRESSION_MSG, saving, avg_saving, avg_size);
+ debug(D_STREAM, "%s: Saving: %lu%% (avg. %lu%%), avg.size: %lu", STREAM_COMPRESSION_MSG,
+ (long unsigned int) saving, (long unsigned int) avg_saving, (long unsigned int) avg_size);
}
return decompressed_size;
}