diff mbox series

[v2,10/16] replay/replay-char: use report_sync_error

Message ID 20231211091346.14616-11-alex.bennee@linaro.org
State Superseded
Headers show
Series record/replay fixes: attempting to get avocado green | expand

Commit Message

Alex Bennée Dec. 11, 2023, 9:13 a.m. UTC
Now we have a centralised report function use it for missing character
events.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 replay/replay-char.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Richard Henderson Dec. 11, 2023, 5:38 p.m. UTC | #1
On 12/11/23 01:13, Alex Bennée wrote:
> Now we have a centralised report function use it for missing character
> events.
> 
> Signed-off-by: Alex Bennée<alex.bennee@linaro.org>
> ---
>   replay/replay-char.c | 6 ++----
>   1 file changed, 2 insertions(+), 4 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~
diff mbox series

Patch

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