summaryrefslogtreecommitdiffstats
path: root/hw/mem
diff options
context:
space:
mode:
authorMichael S. Tsirkin2014-08-04 14:21:59 +0200
committerMichael S. Tsirkin2014-08-14 13:22:00 +0200
commit988eba0f681bd4f82e9e02998da8106f165ed82c (patch)
tree85cf8f7163c961e8e9f331e8c96d356d6dfe07ac /hw/mem
parentpc-dimm: validate node property (diff)
downloadqemu-988eba0f681bd4f82e9e02998da8106f165ed82c.tar.gz
qemu-988eba0f681bd4f82e9e02998da8106f165ed82c.tar.xz
qemu-988eba0f681bd4f82e9e02998da8106f165ed82c.zip
pc-dimm: fix up error message
- int should be printed using %d - print actual wrong value for property Cc: qemu-stable@nongnu.org Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/mem')
-rw-r--r--hw/mem/pc-dimm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c
index 92e276f2f4..5bfc5b7483 100644
--- a/hw/mem/pc-dimm.c
+++ b/hw/mem/pc-dimm.c
@@ -253,8 +253,9 @@ static void pc_dimm_realize(DeviceState *dev, Error **errp)
return;
}
if (dimm->node >= nb_numa_nodes) {
- error_setg(errp, "'" PC_DIMM_NODE_PROP
- "' exceeds numa node number: %" PRId32, nb_numa_nodes);
+ error_setg(errp, "'DIMM property " PC_DIMM_NODE_PROP " has value %"
+ PRIu32 "' which exceeds the number of numa nodes: %d",
+ dimm->node, nb_numa_nodes);
return;
}
}