qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tests/migration: use the common library function
@ 2019-11-11 12:55 Alex Bennée
  2019-11-11 13:07 ` Thomas Huth
  0 siblings, 1 reply; 6+ messages in thread
From: Alex Bennée @ 2019-11-11 12:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: Alex Bennée, dgilbert

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 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



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-11-11 17:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-11 12:55 [PATCH] tests/migration: use the common library function Alex Bennée
2019-11-11 13:07 ` Thomas Huth
2019-11-11 14:11   ` Alex Bennée
2019-11-11 14:39     ` Thomas Huth
2019-11-11 16:18       ` Peter Maydell
2019-11-11 17:02         ` Alex Bennée

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).