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; } }