From nobody Sun May 5 10:04:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1596805037; cv=none; d=zohomail.com; s=zohoarc; b=nFCEZhOF8uUfbJZA9Yrdn5xksiQ/q4pykeMGOzK3YQT34+CaAWvbu+672Kal6rnd19HXYe1RmPLYdg85VQdY8qKVroF1roibtUuYkuO8ZMHJecuckjsltffBYcsAdeafgUaIGbSP06VQidoJjsgd5PetPyDj3gSKw1wFnM3aUSQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1596805037; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=PguLVO2rzPMsSTCFCn47PE9Hue79MB2fzf7FolmSqQE=; b=V1+eRpjU59xwj5H1eG2aQFaDWGS36igaF8yvwkeQsF3OyRUDNqLKDfHWuMNkXzok24ZLIIqt89NR1kFk7azOpsp2CXk6lC3l/CAG2G7rp4TfVajmlGorrPhuGjBzTs7/biTzq8RZQJP9ccUybx3MX7xITzxYHnjlOPXUutmKKA0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1596805037495821.2703653834172; Fri, 7 Aug 2020 05:57:17 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-135-VeI1G7OHNjC10Wr4thU8BQ-1; Fri, 07 Aug 2020 08:57:12 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 837A6106B245; Fri, 7 Aug 2020 12:57:06 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0073C5DA83; Fri, 7 Aug 2020 12:57:05 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id BC7D51809554; Fri, 7 Aug 2020 12:57:04 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 077Crp1t002325 for ; Fri, 7 Aug 2020 08:53:51 -0400 Received: by smtp.corp.redhat.com (Postfix) id B125E6111F; Fri, 7 Aug 2020 12:53:50 +0000 (UTC) Received: from domokun.gsslab.fab.redhat.com (unknown [10.33.8.110]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1D6A560BE2; Fri, 7 Aug 2020 12:53:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596805036; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=PguLVO2rzPMsSTCFCn47PE9Hue79MB2fzf7FolmSqQE=; b=DMxcDAGAX2D9i3RFLHfd/ooDKxt/DrDFUYFR4f+8fjKyKnfInD6JtdFFd1cS28GZVYjiRw z/nVqjRi5eeYbWvWGS0zlTHa5gWwzWaQ8IeLR6d0CHyowy4sEKj3O9MTKd8w2dSu+YPLXk dgjvKIqjRCf8Oq3Dbaoe8gw0N7MM2iM= X-MC-Unique: VeI1G7OHNjC10Wr4thU8BQ-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [PATCH] qemu: remove use of gettid() syscall Date: Fri, 7 Aug 2020 13:53:44 +0100 Message-Id: <20200807125344.3246310-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) 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=C3=A9 --- Pushed as build fix src/qemu/qemu_shim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_shim.c b/src/qemu/qemu_shim.c index 4c06f15779..ef0ba086b5 100644 --- a/src/qemu/qemu_shim.c +++ b/src/qemu/qemu_shim.c @@ -176,8 +176,8 @@ int main(int argc, char **argv) } =20 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()); =20 if (virInitialize() < 0) { g_printerr("%s: cannot initialize libvirt\n", argv[0]); --=20 2.25.4