mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
fixed check of class code list
This commit is contained in:
parent
2b198816b6
commit
976ae11b8c
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user