summaryrefslogtreecommitdiff
path: root/hw/mem
diff options
context:
space:
mode:
authorWainer dos Santos Moschetta <wainersm@redhat.com>2020-03-10 15:05:09 -0300
committerLaurent Vivier <laurent@vivier.eu>2020-05-04 14:35:23 +0200
commitf4eaf69e45c74b33d092ab53903a8458d197e240 (patch)
treec9035291a1a496eb7edb8ba3aaca762dd33608c3 /hw/mem
parent4b4d96c776f552e4a7ffe2b686ef1dfc9ad3f98f (diff)
hw/mem/pc-dimm: Print slot number on error at pc_dimm_pre_plug()
The error report in pc_dimm_pre_plug() now has the slot number printed. Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com> Message-Id: <20200310180510.19489-2-wainersm@redhat.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/mem')
-rw-r--r--hw/mem/pc-dimm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c
index 8f50b8afea..36edfcf467 100644
--- a/hw/mem/pc-dimm.c
+++ b/hw/mem/pc-dimm.c
@@ -44,8 +44,8 @@ void pc_dimm_pre_plug(PCDIMMDevice *dimm, MachineState *machine,
&error_abort);
if ((slot < 0 || slot >= machine->ram_slots) &&
slot != PC_DIMM_UNASSIGNED_SLOT) {
- error_setg(&local_err, "invalid slot number, valid range is [0-%"
- PRIu64 "]", machine->ram_slots - 1);
+ error_setg(&local_err, "invalid slot number %d, valid range is [0-%"
+ PRIu64 "]", slot, machine->ram_slots - 1);
goto out;
}