mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-02-21 02:01:24 +00:00
fixes/minor changes
This commit is contained in:
parent
d2032973b5
commit
2b198816b6
@ -180,8 +180,8 @@ public final class PciIds {
|
||||
String classCode = refClassCode;
|
||||
if (classCode != null && classCode.trim().matches("^[0-9A-Fa-f]{6}$")) {
|
||||
String deviceClass = classCode.substring(0,2).toLowerCase();
|
||||
String deviceSubclass = classCode.substring(2,2).toLowerCase();
|
||||
String programInterface = classCode.substring(4,2).toLowerCase();
|
||||
String deviceSubclass = classCode.substring(2,4).toLowerCase();
|
||||
String programInterface = classCode.substring(4,6).toLowerCase();
|
||||
translatedClassCode.add(deviceClass);
|
||||
translatedClassCode.add(deviceSubclass);
|
||||
translatedClassCode.add(programInterface);
|
||||
|
@ -208,7 +208,7 @@ public abstract class DeviceSecurityEventHeader {
|
||||
|
||||
dsedHeaderCommonInfo += "\n SPDM Device Type = " + deviceTypeToString(deviceType);
|
||||
if (devicePathValid) {
|
||||
dsedHeaderCommonInfo += "\n SPDM Device Path =\n";
|
||||
dsedHeaderCommonInfo += "\n SPDM Device Path:\n";
|
||||
dsedHeaderCommonInfo += devicePath;
|
||||
}
|
||||
else {
|
||||
|
@ -116,7 +116,7 @@ public class UefiDevicePath {
|
||||
*/
|
||||
private String processDev(final byte[] path, final int offset)
|
||||
throws UnsupportedEncodingException {
|
||||
String devInfo = " ";
|
||||
String devInfo = " ";
|
||||
int devPath = path[offset];
|
||||
byte unknownSubType = path[offset + UefiConstants.OFFSET_1];
|
||||
switch (path[0 + offset]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user