From nobody Fri May 17 01:20:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697526180; cv=none; d=zohomail.com; s=zohoarc; b=EzD4jYP8Ewdq03YrCPc+mJcXZx/ZMNqSVtogzNgW6OgwmNXTdLhVnS+PGC7gHgTvThHvFWdOlEuac9LKcgc0wjYcblz9ePxE6jinFtlARO/2BtT5V7jWGIeZaTkbxZ7t4PHeRYDAoipUfBRjOTnL2EFSSNYcDrIiuLIVSFYqcMw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697526180; h=Content-Type:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Iu+ZKk6/T2crLh0ipKQoudQe8rLyDRshrRrDIqtzZEA=; b=RXKiuVs/d9igL7b3dCZUwBgplOTg+FakikI4ewxEQ8vXuTe2TrvM12coN+dHL4U71hY7Hvo+ObgLzYMYTFyFPOo2sx4x5cX6X5yHe1sWIZ6424huf71+q6s+tLtLkC2qM/CYAOA0Y3Fmg2YV0ert5Pv+3LXxCn8zdQB2sWd8DJw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1697526180857200.36794369610288; Tue, 17 Oct 2023 00:03:00 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-52-7UxgxNYqP82nf11XZaLUMg-1; Tue, 17 Oct 2023 03:02:50 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A43E41029F48; Tue, 17 Oct 2023 07:02:47 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id A8E34C15BB8; Tue, 17 Oct 2023 07:02:44 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id C6A3319466F9; Tue, 17 Oct 2023 07:02:42 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 866DE19465B8 for ; Tue, 17 Oct 2023 06:46:37 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 707D5492BEF; Tue, 17 Oct 2023 06:46:37 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 68F8A492BEE for ; Tue, 17 Oct 2023 06:46:37 +0000 (UTC) Received: from us-smtp-inbound-delivery-1.mimecast.com (us-smtp-inbound-delivery-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4537E858F19 for ; Tue, 17 Oct 2023 06:46:37 +0000 (UTC) Received: from cmccmta2.chinamobile.com (cmccmta4.chinamobile.com [111.22.67.137]) by relay.mimecast.com with ESMTP id us-mta-277-jPXmrWEsOAygK8ufFmUZ4g-1; Tue, 17 Oct 2023 02:46:33 -0400 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app08-12008 (RichMail) with SMTP id 2ee8652e2d0b466-06d72; Tue, 17 Oct 2023 14:43:26 +0800 (CST) Received: from ubuntu.localdomain (unknown[223.108.79.101]) by rmsmtp-syy-appsvr10-12010 (RichMail) with SMTP id 2eea652e2d0cda9-38e1f; Tue, 17 Oct 2023 14:43:26 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697526174; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:content-type:content-type:list-id: list-help:list-unsubscribe:list-subscribe:list-post; bh=Iu+ZKk6/T2crLh0ipKQoudQe8rLyDRshrRrDIqtzZEA=; b=f8BXeKqukOoRbPIpwcyjO+Y8xwXcKYycSp8qRLF0/tUQkqfOn9SrJsptDmGY9giFNXpjvz W6tCV83ncPSYQjxpPedniyDcDt2doX/Fxywv4wZmdyJNrQNJlMOcSJI59FYkqL8dPumFLk z84lmNj35r+oGLbsFdwkMjo7T/dayks= X-MC-Unique: 7UxgxNYqP82nf11XZaLUMg-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: jPXmrWEsOAygK8ufFmUZ4g-1 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2ee8652e2d0b466-06d72 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2eea652e2d0cda9-38e1f From: zhujun2 To: libvir-list@redhat.com Subject: [PATCH] fix error in printf format string Date: Mon, 16 Oct 2023 23:43:20 -0700 Message-Id: <20231017064320.10690-1-zhujun2@cmss.chinamobile.com> X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Mailman-Approved-At: Tue, 17 Oct 2023 07:02:41 +0000 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: zhujun2 Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 2 X-Mimecast-Originator: cmss.chinamobile.com X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697526183329100001 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; x-default="true" use '%u' to printf unsigned int Signed-off-by: zhujun2 --- examples/c/misc/event-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/c/misc/event-test.c b/examples/c/misc/event-test.c index 813bca2699..07d86500cd 100644 --- a/examples/c/misc/event-test.c +++ b/examples/c/misc/event-test.c @@ -969,7 +969,7 @@ myDomainEventMemoryFailureCallback(virConnectPtr conn G= _GNUC_UNUSED, void *opaque G_GNUC_UNUSED) { printf("%s EVENT: Domain %s(%d) memory failure: recipient '%d', " - "aciont '%d', flags '%d'\n", __func__, virDomainGetName(dom), + "aciont '%d', flags '%u'\n", __func__, virDomainGetName(dom), virDomainGetID(dom), recipient, action, flags); return 0; } --=20 2.17.1