- hw/virtio/virtio-pmem: Replace impossible check by assertion - tests: Fix printf format string in acpi-utils.c - softmmu/dirtylimit: Add parameter check for hmp "set_vcpu_dirty_limit" - disas/riscv: Fix the typo of inverted order of pmpaddr13 and pmpaddr14 - qga: Fix memory leak when output stream is unused - ui/vnc-clipboard: fix infinite loop in inflate_buffer (CVE-2023-3255) - target/i386: Add few security fix bits in ARCH_CAPABILITIES into SapphireRapids CPU model - target/i386: Add new bit definitions of MSR_IA32_ARCH_CAPABILITIES - target/i386: Allow MCDT_NO if host supports - target/i386: Add support for MCDT_NO in CPUID enumeration - target/i386: Export MSR_ARCH_CAPABILITIES bits to guests - target/i386: add support for FB_CLEAR feature - target/i386: add support for FLUSH_L1D feature - crypto: remove shadowed 'ret' variable - hw/i2c/pmbus_device: Fix modifying QOM class internals from instance - hw/arm/xlnx-zynqmp: fix unsigned error when checking the RPUs number Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com>
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 847becf4850bc244b140644cb577e17e5ba5e732 Mon Sep 17 00:00:00 2001
|
|
From: zhujun2 <zhujun2_yewu@cmss.chinamobile.com>
|
|
Date: Thu, 26 Oct 2023 19:52:59 -0700
|
|
Subject: [PATCH] tests: Fix printf format string in acpi-utils.c
|
|
|
|
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 <zhujun2_yewu@cmss.chinamobile.com>
|
|
---
|
|
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 766c48e3a6..c6f5169b80 100644
|
|
--- a/tests/qtest/acpi-utils.c
|
|
+++ b/tests/qtest/acpi-utils.c
|
|
@@ -103,7 +103,7 @@ void acpi_fetch_table(QTestState *qts, uint8_t **aml, uint32_t *aml_len,
|
|
char *fname = NULL;
|
|
GError *error = NULL;
|
|
|
|
- fprintf(stderr, "Invalid '%.4s'(%d)\n", *aml, *aml_len);
|
|
+ fprintf(stderr, "Invalid '%.4s'(%u)\n", *aml, *aml_len);
|
|
fd = g_file_open_tmp("malformed-XXXXXX.dat", &fname, &error);
|
|
g_assert_no_error(error);
|
|
fprintf(stderr, "Dumping invalid table into '%s'\n", fname);
|
|
--
|
|
2.41.0.windows.1
|
|
|