From nobody Wed Nov 27 13:01:56 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1698410708188404.3783545815379; Fri, 27 Oct 2023 05:45:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qwMCS-00075g-FY; Fri, 27 Oct 2023 08:44:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwDEH-0006si-QT for qemu-devel@nongnu.org; Thu, 26 Oct 2023 23:09:45 -0400 Received: from cmccmta8.chinamobile.com ([111.22.67.151] helo=cmccmta2.chinamobile.com) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qwDEE-0005wj-7F for qemu-devel@nongnu.org; Thu, 26 Oct 2023 23:09:45 -0400 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app06-12006 (RichMail) with SMTP id 2ee6653b29ebaac-4e335; Fri, 27 Oct 2023 11:09:33 +0800 (CST) Received: from ubuntu.localdomain (unknown[10.54.5.255]) by rmsmtp-syy-appsvr09-12009 (RichMail) with SMTP id 2ee9653b29eaed7-654ed; Fri, 27 Oct 2023 11:09:32 +0800 (CST) X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2ee6653b29ebaac-4e335 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2ee9653b29eaed7-654ed From: zhujun2 To: qemu-devel@nongnu.org Cc: mst@redhat.com, imammedo@redhat.com, anisinha@redhat.com, thuth@redhat.com, lvivier@redhat.com, zhujun2 Subject: [PATCH] tests: Fix printf format string in acpi-utils.c Date: Thu, 26 Oct 2023 20:09:30 -0700 Message-Id: <20231027030930.7739-1-zhujun2@cmss.chinamobile.com> X-Mailer: git-send-email 2.17.1 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=111.22.67.151; envelope-from=zhujun2@cmss.chinamobile.com; helo=cmccmta2.chinamobile.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 27 Oct 2023 08:44:23 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1698410709292100001 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Inside of acpi_fetch_table() arguments are printed via fprintf but '%d' is used to print @flags (of type uint). Use '%u' instead. Signed-off-by: zhujun2 Reviewed-by: Ani Sinha --- tests/qtest/acpi-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qtest/acpi-utils.c b/tests/qtest/acpi-utils.c index 673fc97586..6389f1f418 100644 --- a/tests/qtest/acpi-utils.c +++ b/tests/qtest/acpi-utils.c @@ -102,7 +102,7 @@ void acpi_fetch_table(QTestState *qts, uint8_t **aml, u= int32_t *aml_len, char *fname =3D NULL; GError *error =3D NULL; =20 - fprintf(stderr, "Invalid '%.4s'(%d)\n", *aml, *aml_len); + fprintf(stderr, "Invalid '%.4s'(%u)\n", *aml, *aml_len); fd =3D g_file_open_tmp("malformed-XXXXXX.dat", &fname, &error); g_assert_no_error(error); fprintf(stderr, "Dumping invalid table into '%s'\n", fname); --=20 2.17.1