diff options
Diffstat (limited to 'xdelta3/xdelta3-decode.h')
-rw-r--r-- | xdelta3/xdelta3-decode.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/xdelta3/xdelta3-decode.h b/xdelta3/xdelta3-decode.h index bce5956..4e33189 100644 --- a/xdelta3/xdelta3-decode.h +++ b/xdelta3/xdelta3-decode.h | |||
@@ -162,7 +162,7 @@ xd3_decode_allocate (xd3_stream *stream, | |||
162 | uint8_t **buf_ptr, | 162 | uint8_t **buf_ptr, |
163 | usize_t *buf_alloc) | 163 | usize_t *buf_alloc) |
164 | { | 164 | { |
165 | IF_DEBUG2 (DP(RINT "[xd3_decode_allocate] size %u alloc %u\n", | 165 | IF_DEBUG2 (DP(RINT "[xd3_decode_allocate] size %"W"u alloc %"W"u\n", |
166 | size, *buf_alloc)); | 166 | size, *buf_alloc)); |
167 | 167 | ||
168 | if (*buf_ptr != NULL && *buf_alloc < size) | 168 | if (*buf_ptr != NULL && *buf_alloc < size) |
@@ -207,7 +207,7 @@ xd3_decode_section (xd3_stream *stream, | |||
207 | /* No allocation/copy needed */ | 207 | /* No allocation/copy needed */ |
208 | section->buf = stream->next_in; | 208 | section->buf = stream->next_in; |
209 | sect_take = section->size; | 209 | sect_take = section->size; |
210 | IF_DEBUG1 (DP(RINT "[xd3_decode_section] zerocopy %u @ %u avail %u\n", | 210 | IF_DEBUG1 (DP(RINT "[xd3_decode_section] zerocopy %"W"u @ %"W"u avail %"W"u\n", |
211 | sect_take, section->pos, stream->avail_in)); | 211 | sect_take, section->pos, stream->avail_in)); |
212 | } | 212 | } |
213 | else | 213 | else |
@@ -232,7 +232,7 @@ xd3_decode_section (xd3_stream *stream, | |||
232 | section->buf = section->copied1; | 232 | section->buf = section->copied1; |
233 | } | 233 | } |
234 | 234 | ||
235 | IF_DEBUG2 (DP(RINT "[xd3_decode_section] take %u @ %u [need %u] avail %u\n", | 235 | IF_DEBUG2 (DP(RINT "[xd3_decode_section] take %"W"u @ %"W"u [need %"W"u] avail %"W"u\n", |
236 | sect_take, section->pos, sect_need, stream->avail_in)); | 236 | sect_take, section->pos, sect_need, stream->avail_in)); |
237 | XD3_ASSERT (section->pos + sect_take <= section->alloc1); | 237 | XD3_ASSERT (section->pos + sect_take <= section->alloc1); |
238 | 238 | ||
@@ -250,7 +250,8 @@ xd3_decode_section (xd3_stream *stream, | |||
250 | 250 | ||
251 | if (section->pos < section->size) | 251 | if (section->pos < section->size) |
252 | { | 252 | { |
253 | IF_DEBUG1 (DP(RINT "[xd3_decode_section] further input required %u\n", section->size - section->pos)); | 253 | IF_DEBUG1 (DP(RINT "[xd3_decode_section] further input required %"W"u\n", |
254 | section->size - section->pos)); | ||
254 | stream->msg = "further input required"; | 255 | stream->msg = "further input required"; |
255 | return XD3_INPUT; | 256 | return XD3_INPUT; |
256 | } | 257 | } |
@@ -772,7 +773,7 @@ xd3_decode_emit (xd3_stream *stream) | |||
772 | 773 | ||
773 | if (stream->avail_out != stream->dec_tgtlen) | 774 | if (stream->avail_out != stream->dec_tgtlen) |
774 | { | 775 | { |
775 | IF_DEBUG2 (DP(RINT "AVAIL_OUT(%d) != DEC_TGTLEN(%d)\n", | 776 | IF_DEBUG2 (DP(RINT "AVAIL_OUT(%"W"u) != DEC_TGTLEN(%"W"u)\n", |
776 | stream->avail_out, stream->dec_tgtlen)); | 777 | stream->avail_out, stream->dec_tgtlen)); |
777 | stream->msg = "wrong window length"; | 778 | stream->msg = "wrong window length"; |
778 | return XD3_INVALID_INPUT; | 779 | return XD3_INVALID_INPUT; |
@@ -1009,7 +1010,7 @@ xd3_decode_input (xd3_stream *stream) | |||
1009 | 1010 | ||
1010 | stream->dec_state = DEC_CPYLEN; | 1011 | stream->dec_state = DEC_CPYLEN; |
1011 | 1012 | ||
1012 | IF_DEBUG2 (DP(RINT "--------- TARGET WINDOW %"Q" -----------\n", | 1013 | IF_DEBUG2 (DP(RINT "--------- TARGET WINDOW %"Q"u -----------\n", |
1013 | stream->current_window)); | 1014 | stream->current_window)); |
1014 | } | 1015 | } |
1015 | 1016 | ||
@@ -1168,8 +1169,8 @@ xd3_decode_input (xd3_stream *stream) | |||
1168 | IF_DEBUG2(DP(RINT | 1169 | IF_DEBUG2(DP(RINT |
1169 | "[decode_cpyoff] %"Q"u " | 1170 | "[decode_cpyoff] %"Q"u " |
1170 | "cpyblkno %"Q"u " | 1171 | "cpyblkno %"Q"u " |
1171 | "cpyblkoff %u " | 1172 | "cpyblkoff %"W"u " |
1172 | "blksize %u\n", | 1173 | "blksize %"W"u\n", |
1173 | stream->dec_cpyoff, | 1174 | stream->dec_cpyoff, |
1174 | src->cpyoff_blocks, | 1175 | src->cpyoff_blocks, |
1175 | src->cpyoff_blkoff, | 1176 | src->cpyoff_blkoff, |