]> Git Repo - qemu.git/commitdiff
hw/mem/pc-dimm: Print slot number on error at pc_dimm_pre_plug()
authorWainer dos Santos Moschetta <[email protected]>
Tue, 10 Mar 2020 18:05:09 +0000 (15:05 -0300)
committerLaurent Vivier <[email protected]>
Mon, 4 May 2020 12:35:23 +0000 (14:35 +0200)
The error report in pc_dimm_pre_plug() now has the slot
number printed.

Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
Message-Id: <20200310180510[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
hw/mem/pc-dimm.c

index 8f50b8afea3c22a6af0745fb3a4a1db86bd17445..36edfcf46799739c3f19a22ab6e5e2352dcc2381 100644 (file)
@@ -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;
     }
 
This page took 0.027048 seconds and 4 git commands to generate.