From nobody Fri May 10 03:58:38 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=1697526179; cv=none; d=zohomail.com; s=zohoarc; b=M1qfUFLq04K0SuJqvkg//J+EuzewvSZF7OPFvRGbpNIGPFiQi+v22N58CmurRAZezD3tN/14TnycMXnnsLGjuwSn1ltEyHCys/AwX3cC3ku+0xmVwF6DPJe8qcOscX6QNe1W08q7S5OrIg9xNeTKkIx06N/UiN6Ssp0DqbItWmg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697526179; 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=KR5WjTiq6mC8ApipRDGKkzkLosqJgHcd843uB8gFrt1lKs3pI/slkp5CFtJzC2sjWJdlWxkOshDawQrK5yZa3oNrK67JOgyb6W61C4S7Fdq+mBlfU93lWZ+u8zhIOaFp2KH0d+PaIVIqCWs5rP7K7N+PW9y6luamPLO+oijsAXg= 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 1697526179228988.8751828395115; Tue, 17 Oct 2023 00:02:59 -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-8lUiG-uNMvafNYiT4LM4ug-1; Tue, 17 Oct 2023 03:02:50 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (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 A30C8185A79C; 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 E8FC01C060B0; Tue, 17 Oct 2023 07:02:42 +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 82B8B19466EC; Tue, 17 Oct 2023 07:02:42 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 5FD1319465B8 for ; Tue, 17 Oct 2023 06:47:04 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 49C0A1C060B0; Tue, 17 Oct 2023 06:47:04 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 42B401C060AE for ; Tue, 17 Oct 2023 06:47:04 +0000 (UTC) Received: from us-smtp-inbound-delivery-1.mimecast.com (us-smtp-inbound-delivery-1.mimecast.com [207.211.31.120]) (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 27AA5862DFD for ; Tue, 17 Oct 2023 06:47:04 +0000 (UTC) Received: from cmccmta2.chinamobile.com (cmccmta8.chinamobile.com [111.22.67.151]) by relay.mimecast.com with ESMTP id us-mta-287-FyW_LGbZOxSinnxhmK4k2Q-1; Tue, 17 Oct 2023 02:47:00 -0400 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app06-12006 (RichMail) with SMTP id 2ee6652e2d2912a-069b3; Tue, 17 Oct 2023 14:43:56 +0800 (CST) Received: from ubuntu.localdomain (unknown[223.108.79.101]) by rmsmtp-syy-appsvr09-12009 (RichMail) with SMTP id 2ee9652e2d2b346-39555; Tue, 17 Oct 2023 14:43:55 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697526173; 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=LL1DW4tu4tcTcxCzoHSRWBeeLCEFDhX0uKNsopOAq74nlwpStVwC/vJD5yfdJ2yR6S04WW xcSry2P+DMPFHq/QtHDf+0FQM8UQzElTsdCJrsof+0nxxzAr+Wq7+3mQ+31wihLxLZqCRT f7/mhKM6U9iGvINft6heqKf+MWMxnmo= X-MC-Unique: 8lUiG-uNMvafNYiT4LM4ug-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: FyW_LGbZOxSinnxhmK4k2Q-1 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2ee6652e2d2912a-069b3 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2ee9652e2d2b346-39555 From: zhujun2 To: libvir-list@redhat.com Subject: [PATCH] fix error in printf format string Date: Mon, 16 Oct 2023 23:43:50 -0700 Message-Id: <20231017064350.10738-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.7 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@cmss.chinamobile.com Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Mimecast-Spam-Score: 2 X-Mimecast-Originator: cmss.chinamobile.com X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697526181042100001 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 Reviewed-by: Michal Privoznik --- 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