fixed check of class code list

This commit is contained in:
iadgovuser58 2024-07-09 13:56:15 -04:00
parent 2b198816b6
commit 976ae11b8c

View File

@ -120,10 +120,14 @@ public class DeviceSecurityEventDataPciContext extends DeviceSecurityEventDataDe
dSEDpciContextInfo += "\n RevisionID = " + revisionId; dSEDpciContextInfo += "\n RevisionID = " + revisionId;
List<String> classCodeList = translateDeviceClass(classCode); List<String> classCodeList = translateDeviceClass(classCode);
dSEDpciContextInfo += "\n Device Class:"; dSEDpciContextInfo += "\n Device Class: ";
dSEDpciContextInfo += "\n Class = " + classCodeList.get(0); if(classCodeList.size() == 3) {
dSEDpciContextInfo += "\n Subclass = " + classCodeList.get(1); dSEDpciContextInfo += "\n Class = " + classCodeList.get(0);
dSEDpciContextInfo += "\n Programming Interface = " + classCodeList.get(2); dSEDpciContextInfo += "\n Subclass = " + classCodeList.get(1);
dSEDpciContextInfo += "\n Programming Interface = " + classCodeList.get(2);
} else {
dSEDpciContextInfo += " ** Class code could not be determined **";
}
dSEDpciContextInfo += "\n SubsystemVendor = " + translateVendor(subsystemVendorId); dSEDpciContextInfo += "\n SubsystemVendor = " + translateVendor(subsystemVendorId);
dSEDpciContextInfo += "\n Subsystem = " + translateDevice(subsystemVendorId, subsystemId); dSEDpciContextInfo += "\n Subsystem = " + translateDevice(subsystemVendorId, subsystemId);