mirror of
https://github.com/schoebel/mars
synced 2025-02-21 06:46:57 +00:00
lib_log: report decompression errors
This commit is contained in:
parent
193c650377
commit
0e654cef63
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user