qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests/migration: use the common library function


From: Alex Bennée
Subject: [PATCH] tests/migration: use the common library function
Date: Mon, 11 Nov 2019 12:55:30 +0000

Signed-off-by: Alex Bennée <address@hidden>
---
 tests/migration/stress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/migration/stress.c b/tests/migration/stress.c
index 0c239646934..915389b53ae 100644
--- a/tests/migration/stress.c
+++ b/tests/migration/stress.c
@@ -31,7 +31,7 @@ const char *argv0;
 
 static int gettid(void)
 {
-    return syscall(SYS_gettid);
+    return qemu_get_thread_id();
 }
 
 static __attribute__((noreturn)) void exit_failure(void)
-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]