]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: remove use of gettid() syscall
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 7 Aug 2020 12:51:16 +0000 (13:51 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 7 Aug 2020 12:51:16 +0000 (13:51 +0100)
This is not expose in most historical versions of glibc, nor
non-glibc impls. We must use our wrapper API instead.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_shim.c

index 4c06f1577987cee0ef133d244041ee3df1db63f3..ef0ba086b56d014e5692d609c3f6956f2df23d1c 100644 (file)
@@ -176,8 +176,8 @@ int main(int argc, char **argv)
     }
 
     if (verbose)
-        g_printerr("%s: %lld: initializing libvirt %d\n",
-                   argv[0], deltams(), gettid());
+        g_printerr("%s: %lld: initializing libvirt %llu\n",
+                   argv[0], deltams(), virThreadSelfID());
 
     if (virInitialize() < 0) {
         g_printerr("%s: cannot initialize libvirt\n", argv[0]);