[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/8] plugins: update lockstep to use g_memdup2
|
From: |
Alex Bennée |
|
Subject: |
[PATCH 3/8] plugins: update lockstep to use g_memdup2 |
|
Date: |
Fri, 19 May 2023 18:04:49 +0100 |
The old g_memdup is deprecated, use the replacement.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
contrib/plugins/lockstep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/plugins/lockstep.c b/contrib/plugins/lockstep.c
index e36f0b9562..3614c3564c 100644
--- a/contrib/plugins/lockstep.c
+++ b/contrib/plugins/lockstep.c
@@ -130,7 +130,7 @@ static void report_divergance(ExecState *us, ExecState
*them)
}
}
divergence_log = g_slist_prepend(divergence_log,
- g_memdup(&divrec, sizeof(divrec)));
+ g_memdup2(&divrec, sizeof(divrec)));
/* Output short log entry of going out of sync... */
if (verbose || divrec.distance == 1 || diverged) {
--
2.39.2
- [PATCH 0/8] plugins/next: bugfixs and iops based time control RFC, Alex Bennée, 2023/05/19
- [PATCH 3/8] plugins: update lockstep to use g_memdup2,
Alex Bennée <=
- [RFC PATCH 4/8] sysemu: add set_virtual_time to accel ops, Alex Bennée, 2023/05/19
- [PATCH 1/8] plugins: force slow path when plugins instrument memory ops, Alex Bennée, 2023/05/19
- [RFC PATCH 6/8] sysemu: generalise qtest_warp_clock as qemu_clock_advance_virtual_time, Alex Bennée, 2023/05/19
- [PATCH 2/8] plugins: fix memory leak while parsing options, Alex Bennée, 2023/05/19
- [RFC PATCH 7/8] plugins: add time control API, Alex Bennée, 2023/05/19
- [RFC PATCH 5/8] qtest: use cpu interface in qtest_clock_warp, Alex Bennée, 2023/05/19