replay/replay-char: use report_sync_error
Now we have a centralised report function use it for missing character events. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20231211091346.14616-11-alex.bennee@linaro.org>
This commit is contained in:
parent
dcda73211c
commit
fd84325f71
@ -113,8 +113,7 @@ void replay_char_write_event_load(int *res, int *offset)
|
||||
*offset = replay_get_dword();
|
||||
replay_finish_event();
|
||||
} else {
|
||||
error_report("Missing character write event in the replay log");
|
||||
exit(1);
|
||||
replay_sync_error("Missing character write event in the replay log");
|
||||
}
|
||||
}
|
||||
|
||||
@ -135,8 +134,7 @@ int replay_char_read_all_load(uint8_t *buf)
|
||||
replay_finish_event();
|
||||
return res;
|
||||
} else {
|
||||
error_report("Missing character read all event in the replay log");
|
||||
exit(1);
|
||||
replay_sync_error("Missing character read all event in the replay log");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user