aboutsummaryrefslogtreecommitdiff
path: root/replay
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2023-12-11 09:13:39 +0000
committerAlex Bennée <alex.bennee@linaro.org>2024-01-08 13:58:59 +0000
commitfd84325f71254c741464de231c491d21ecf63b1a (patch)
tree89ae91c22eb2cf61197b1542abb1c7d861690767 /replay
parentdcda73211cd102dbfb8b8465c49dac66246a511e (diff)
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>
Diffstat (limited to 'replay')
-rw-r--r--replay/replay-char.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/replay/replay-char.c b/replay/replay-char.c
index a31aded032..72b1f832dd 100644
--- a/replay/replay-char.c
+++ b/replay/replay-char.c
@@ -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");
}
}