pc-dimm: fix up error message
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 4 Aug 2014 12:21:59 +0000 (14:21 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 14 Aug 2014 11:22:00 +0000 (13:22 +0200)
- 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>
hw/mem/pc-dimm.c

index 92e276f..5bfc5b7 100644 (file)
@@ -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;
     }
 }