Changeset 81131 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 7, 2019 5:55:10 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/VBoxLogRelCreate.cpp
r79904 r81131 84 84 if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW) 85 85 pfnLog(pReleaseLogger, "DMI Product Version: %s\n", szTmp); 86 87 RTSYSFWTYPE enmType; 88 vrc = RTSystemFirmwareQueryType(&enmType); 89 if (RT_SUCCESS(vrc)) 90 { 91 pfnLog(pReleaseLogger, "Firmware type: "); 92 93 switch (enmType) 94 { 95 case RTSYSFWTYPE_BIOS: 96 pfnLog(pReleaseLogger, "BIOS\n"); 97 break; 98 case RTSYSFWTYPE_UEFI: 99 pfnLog(pReleaseLogger, "UEFI\n"); 100 break; 101 case RTSYSFWTYPE_UNKNOWN: /* Not implemented on this platforms? */ 102 pfnLog(pReleaseLogger, "Unknown\n"); 103 break; 104 default: 105 AssertFailed(); 106 break; 107 } 108 109 if (enmType == RTSYSFWTYPE_UEFI) 110 { 111 RTSYSFWVALUE Value; 112 vrc = RTSystemFirmwareQueryValue(RTSYSFWPROP_SECURE_BOOT, &Value); 113 if (RT_SUCCESS(vrc)) 114 { 115 Assert(Value.enmType == RTSYSFWVALUETYPE_BOOLEAN); 116 pfnLog(pReleaseLogger, "Secure Boot: %s\n", Value.u.fVal ? "Enabled" : "Disabled"); 117 RTSystemFirmwareFreeValue(&Value); 118 } 119 } 120 } 86 121 87 122 uint64_t cbHostRam = 0, cbHostRamAvail = 0;
Note:
See TracChangeset
for help on using the changeset viewer.