diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2014-08-04 14:21:59 +0200 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2014-09-08 11:23:04 -0500 |
commit | 948574e0d251e56e338f26a19c16ccf3b581472f (patch) | |
tree | 76b0fbe32fde833ff3389c0764c6a58c0a976677 | |
parent | 044af98ea8d5c2e36a18a123659e1f032a8cb75f (diff) | |
download | qemu-948574e0d251e56e338f26a19c16ccf3b581472f.tar.gz |
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>
(cherry picked from commit 988eba0f681bd4f82e9e02998da8106f165ed82c)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-rw-r--r-- | hw/mem/pc-dimm.c | 5 |
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; } } |