Use default dimm id preferences for uninitialized dimms in show dimm command
@@ -1504,7 +1504,15 @@ ShowDimms(
PRINTER_BUILD_KEY_PATH(pPath, DS_DIMM_INDEX_PATH, DimmIndex + InitializedDimmCount);
- PRINTER_SET_KEY_VAL_WIDE_STR_FORMAT(pPrinterCtx, pPath, DIMM_ID_STR, FORMAT_HEX, pUninitializedDimms[DimmIndex].DimmHandle);
+ ReturnCode = GetPreferredDimmIdAsString(pUninitializedDimms[DimmIndex].DimmHandle, pUninitializedDimms[DimmIndex].DimmUid, DimmStr,
+ MAX_DIMM_UID_LENGTH);
+ if ((pUninitializedDimms[DimmIndex].ErrorMask & DIMM_INFO_ERROR_UID) ||
+ EFI_ERROR(ReturnCode)) {
+ PRINTER_SET_KEY_VAL_WIDE_STR(pPrinterCtx, pPath, DIMM_ID_STR, UNKNOWN_ATTRIB_VAL);
+ }
+ else {
+ PRINTER_SET_KEY_VAL_WIDE_STR(pPrinterCtx, pPath, DIMM_ID_STR, DimmStr);
+ }
/** Capacity **/
if (ShowAll || (pDispOptions->DisplayOptionSet && ContainsValue(pDispOptions->pDisplayValues, CAPACITY_STR))) {
