Skip to content
Snippets Groups Projects
Commit f4eaf69e authored by Wainer dos Santos Moschetta's avatar Wainer dos Santos Moschetta Committed by Laurent Vivier
Browse files

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: default avatarWainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20200310180510.19489-2-wainersm@redhat.com>
Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
parent 4b4d96c7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment