Skip to content

Commit

Permalink
replay/replay-char: use report_sync_error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stsquad committed Jan 8, 2024
1 parent dcda732 commit fd84325
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions replay/replay-char.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand All @@ -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");
}
}

Expand Down

0 comments on commit fd84325

Please sign in to comment.