mirror of https://github.com/schoebel/mars
lib_log: quiet annoying false error message
This commit is contained in:
parent
f9bc52c359
commit
b741f0b992
|
@ -183,9 +183,11 @@ int log_scan(void *buf, int len, loff_t file_pos, int file_offset, bool sloppy,
|
||||||
DATA_GET(buf, offset, lh->l_written.tv_sec);
|
DATA_GET(buf, offset, lh->l_written.tv_sec);
|
||||||
DATA_GET(buf, offset, lh->l_written.tv_nsec);
|
DATA_GET(buf, offset, lh->l_written.tv_nsec);
|
||||||
|
|
||||||
if (unlikely(lh->l_seq_nr != *seq_nr + 1 && lh->l_seq_nr && *seq_nr)) {
|
if (unlikely(lh->l_seq_nr > *seq_nr + 1 && lh->l_seq_nr && *seq_nr)) {
|
||||||
MARS_ERR(SCAN_TXT "record sequence number %u mismatch, expected was %u\n", SCAN_PAR, lh->l_seq_nr, *seq_nr + 1);
|
MARS_ERR(SCAN_TXT "record sequence number %u mismatch, expected was %u\n", SCAN_PAR, lh->l_seq_nr, *seq_nr + 1);
|
||||||
return -EBADMSG;
|
return -EBADMSG;
|
||||||
|
} else if (unlikely(lh->l_seq_nr != *seq_nr + 1 && lh->l_seq_nr && *seq_nr)) {
|
||||||
|
MARS_WRN(SCAN_TXT "record sequence number %u mismatch, expected was %u\n", SCAN_PAR, lh->l_seq_nr, *seq_nr + 1);
|
||||||
}
|
}
|
||||||
*seq_nr = lh->l_seq_nr;
|
*seq_nr = lh->l_seq_nr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue