Commit 7a3c1331bf for qemu.org
commit 7a3c1331bf8d78abfca8d4c23f9785892623dd16
Author: Gavin Shan <gshan@redhat.com>
Date: Tue Oct 20 11:24:04 2026 +1000
hw/virtio/virtio-mem: Fix error message on invalid NUMA node
Add space as the separator between "exceeds" and "the number of numa
nodes:". Otherwise, we will see error message with twisted format like
below.
qemu-system-aarch64: -device virtio-mem-pci,id=vmem1,bus=pcie.3, \
memdev=virtio-mem1-mem,requested-size=0,node=1: 'node' property \
has value '1', which exceedsthe number of numa nodes: 1
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: David Hildenbrand <david@kernel.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20261020012404.191329-1-gshan@redhat.com>
diff --git a/hw/virtio/virtio-mem.c b/hw/virtio/virtio-mem.c
index 7130ed852d..ee6a0c206a 100644
--- a/hw/virtio/virtio-mem.c
+++ b/hw/virtio/virtio-mem.c
@@ -846,7 +846,7 @@ static void virtio_mem_device_realize(DeviceState *dev, Error **errp)
if ((nb_numa_nodes && vmem->node >= nb_numa_nodes) ||
(!nb_numa_nodes && vmem->node)) {
error_setg(errp, "'%s' property has value '%" PRIu32 "', which exceeds"
- "the number of numa nodes: %d", VIRTIO_MEM_NODE_PROP,
+ " the number of numa nodes: %d", VIRTIO_MEM_NODE_PROP,
vmem->node, nb_numa_nodes ? nb_numa_nodes : 1);
return;
}