Skip to content

Commit

Permalink
fixed check of class code list
Browse files Browse the repository at this point in the history
  • Loading branch information
iadgovuser58 committed Jul 9, 2024
1 parent 2b19881 commit 976ae11
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,14 @@ public String toString() {
dSEDpciContextInfo += "\n RevisionID = " + revisionId;

List<String> classCodeList = translateDeviceClass(classCode);
dSEDpciContextInfo += "\n Device Class:";
dSEDpciContextInfo += "\n Class = " + classCodeList.get(0);
dSEDpciContextInfo += "\n Subclass = " + classCodeList.get(1);
dSEDpciContextInfo += "\n Programming Interface = " + classCodeList.get(2);
dSEDpciContextInfo += "\n Device Class: ";
if(classCodeList.size() == 3) {
dSEDpciContextInfo += "\n Class = " + classCodeList.get(0);
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 Subsystem = " + translateDevice(subsystemVendorId, subsystemId);

Expand Down

0 comments on commit 976ae11

Please sign in to comment.