lib_log: report decompression errors

This commit is contained in:
Thomas Schoebel-Theuer 2021-03-10 15:59:15 +01:00 committed by Thomas Schoebel-Theuer
parent 193c650377
commit 0e654cef63

View File

@ -814,6 +814,11 @@ int log_scan(void *buf,
*dealloc = new_buf;
crc_buf = new_buf;
crc_len = decompr_len;
} else {
MARS_ERR(SCAN_TXT "decompression 0x%x failure len=%d/%d\n",
SCAN_PAR, check_flags,
crc_len, decompr_len);
return -EBADMSG;
}
}