@@ -56,7 +56,7 @@ uint32_t GetFormatFlag(int window_bits) {
5656int CompressIAA (uint8_t * input, uint32_t * input_length, uint8_t * output,
5757 uint32_t * output_length, qpl_path_t execution_path,
5858 int window_bits, uint32_t max_compressed_size, bool gzip_ext) {
59- Log (LogLevel::LOG_INFO, " CompressIAA() Line %d input_length %d \n " , __LINE__,
59+ Log (LogLevel::LOG_INFO, " CompressIAA() Line {} input_length {} \n " , __LINE__,
6060 *input_length);
6161
6262 // State from previous job execution not ignored/reset correctly for zlib
@@ -68,7 +68,7 @@ int CompressIAA(uint8_t* input, uint32_t* input_length, uint8_t* output,
6868
6969 qpl_job* job = job_.GetJob (execution_path);
7070 if (job == nullptr ) {
71- Log (LogLevel::LOG_ERROR, " CompressIAA() Line %d Error qpl_job is null\n " ,
71+ Log (LogLevel::LOG_ERROR, " CompressIAA() Line {} Error qpl_job is null\n " ,
7272 __LINE__);
7373 return 1 ;
7474 }
@@ -113,7 +113,7 @@ int CompressIAA(uint8_t* input, uint32_t* input_length, uint8_t* output,
113113
114114 qpl_status status = qpl_execute_job (job);
115115 if (status != QPL_STS_OK) {
116- Log (LogLevel::LOG_ERROR, " CompressIAA() Line %d status %d \n " , __LINE__,
116+ Log (LogLevel::LOG_ERROR, " CompressIAA() Line {} status {} \n " , __LINE__,
117117 status);
118118 return 1 ;
119119 }
@@ -127,7 +127,7 @@ int CompressIAA(uint8_t* input, uint32_t* input_length, uint8_t* output,
127127 *input_length = job->total_in ;
128128 *output_length = job->total_out ;
129129
130- Log (LogLevel::LOG_INFO, " CompressIAA() Line %d compressed_size %d \n " ,
130+ Log (LogLevel::LOG_INFO, " CompressIAA() Line {} compressed_size {} \n " ,
131131 __LINE__, *output_length);
132132
133133 if (output_shift > 0 ) {
@@ -180,7 +180,7 @@ int CompressIAA(uint8_t* input, uint32_t* input_length, uint8_t* output,
180180int UncompressIAA (uint8_t * input, uint32_t * input_length, uint8_t * output,
181181 uint32_t * output_length, qpl_path_t execution_path,
182182 int window_bits, bool * end_of_stream, bool detect_gzip_ext) {
183- Log (LogLevel::LOG_INFO, " UncompressIAA() Line %d input_length %d \n " , __LINE__,
183+ Log (LogLevel::LOG_INFO, " UncompressIAA() Line {} input_length {} \n " , __LINE__,
184184 *input_length);
185185
186186 bool gzip_ext = false ;
@@ -197,7 +197,7 @@ int UncompressIAA(uint8_t* input, uint32_t* input_length, uint8_t* output,
197197
198198 qpl_job* job = job_.GetJob (execution_path);
199199 if (job == nullptr ) {
200- Log (LogLevel::LOG_ERROR, " UncompressIAA() Line %d Error qpl_job is null\n " ,
200+ Log (LogLevel::LOG_ERROR, " UncompressIAA() Line {} Error qpl_job is null\n " ,
201201 __LINE__);
202202 return 1 ;
203203 }
@@ -218,7 +218,7 @@ int UncompressIAA(uint8_t* input, uint32_t* input_length, uint8_t* output,
218218 qpl_status status = qpl_execute_job (job);
219219 if (status != QPL_STS_OK) {
220220 Log (LogLevel::LOG_ERROR,
221- " UncompressIAA() Line %d qpl_execute_job status %d \n " , __LINE__,
221+ " UncompressIAA() Line {} qpl_execute_job status {} \n " , __LINE__,
222222 status);
223223 return 1 ;
224224 }
@@ -230,7 +230,7 @@ int UncompressIAA(uint8_t* input, uint32_t* input_length, uint8_t* output,
230230 *input_length = gzip_ext_dest_size + GZIP_EXT_HDRFTR_SIZE;
231231 }
232232 *end_of_stream = true ;
233- Log (LogLevel::LOG_INFO, " UncompressIAA() Line %d output size %d \n " , __LINE__,
233+ Log (LogLevel::LOG_INFO, " UncompressIAA() Line {} output size {} \n " , __LINE__,
234234 job->total_out );
235235 return 0 ;
236236}
@@ -242,7 +242,7 @@ bool SupportedOptionsIAA(int window_bits, uint32_t input_length,
242242 (window_bits >= 24 && window_bits <= 31 )) {
243243 if (input_length > MAX_BUFFER_SIZE || output_length > MAX_BUFFER_SIZE) {
244244 Log (LogLevel::LOG_INFO,
245- " SupportedOptionsIAA() Line %d input length %d or output length %d "
245+ " SupportedOptionsIAA() Line {} input length {} or output length {} "
246246 " is more than 2MB\n " ,
247247 __LINE__, input_length, output_length);
248248 return false ;
@@ -263,7 +263,7 @@ bool PrependedEmptyBlockPresent(uint8_t* input, uint32_t input_length,
263263 input[header_length + 2 ] == 0 && input[header_length + 3 ] == 0xFF &&
264264 input[header_length + 4 ] == 0xFF ) {
265265 Log (LogLevel::LOG_INFO,
266- " PrependedEmptyBlockPresent() Line %d Empty block detected\n " ,
266+ " PrependedEmptyBlockPresent() Line {} Empty block detected\n " ,
267267 __LINE__);
268268 return true ;
269269 }
@@ -276,7 +276,7 @@ bool IsIAADecompressible(uint8_t* input, uint32_t input_length,
276276 CompressedFormat format = GetCompressedFormat (window_bits);
277277 if (format == CompressedFormat::ZLIB) {
278278 int window = GetWindowSizeFromZlibHeader (input, input_length);
279- Log (LogLevel::LOG_INFO, " IsIAADecompressible() Line %d window %d \n " ,
279+ Log (LogLevel::LOG_INFO, " IsIAADecompressible() Line {} window {} \n " ,
280280 __LINE__, window);
281281 return window <= 12 ;
282282 } else {
0 commit comments