debugging SLF4J warning

This commit is contained in:
iadgovuser58 2024-08-09 13:50:15 -04:00
parent 1324edcfcb
commit 6f0553fe3f
4 changed files with 40 additions and 40 deletions

View File

@ -113,21 +113,21 @@ public class DeviceSecurityEventDataPciContext extends DeviceSecurityEventDataDe
dSEDpciContextInfo += super.toString(); dSEDpciContextInfo += super.toString();
dSEDpciContextInfo += " Device Type = PCI\n"; dSEDpciContextInfo += " Device Type = PCI\n";
dSEDpciContextInfo += " Vendor = " + translateVendor(vendorId) + "\n"; // dSEDpciContextInfo += " Vendor = " + translateVendor(vendorId) + "\n";
dSEDpciContextInfo += " Device = " + translateDevice(vendorId, deviceId) + "\n"; // dSEDpciContextInfo += " Device = " + translateDevice(vendorId, deviceId) + "\n";
dSEDpciContextInfo += " RevisionID = " + revisionId + "\n"; // dSEDpciContextInfo += " RevisionID = " + revisionId + "\n";
List<String> classCodeList = translateDeviceClass(classCode); // List<String> classCodeList = translateDeviceClass(classCode);
dSEDpciContextInfo += " Device Class: \n"; // dSEDpciContextInfo += " Device Class: \n";
if(classCodeList.size() == 3) { // if(classCodeList.size() == 3) {
dSEDpciContextInfo += " Class = " + classCodeList.get(0) + "\n"; // dSEDpciContextInfo += " Class = " + classCodeList.get(0) + "\n";
dSEDpciContextInfo += " Subclass = " + classCodeList.get(1) + "\n"; // dSEDpciContextInfo += " Subclass = " + classCodeList.get(1) + "\n";
dSEDpciContextInfo += " Programming Interface = " + classCodeList.get(2) + "\n"; // dSEDpciContextInfo += " Programming Interface = " + classCodeList.get(2) + "\n";
} else { // } else {
dSEDpciContextInfo += " ** Class code could not be determined **"; // dSEDpciContextInfo += " ** Class code could not be determined **";
} // }
dSEDpciContextInfo += " SubsystemVendor = " + translateVendor(subsystemVendorId) + "\n"; // dSEDpciContextInfo += " SubsystemVendor = " + translateVendor(subsystemVendorId) + "\n";
dSEDpciContextInfo += " Subsystem = " + translateDevice(subsystemVendorId, subsystemId) + "\n"; // dSEDpciContextInfo += " Subsystem = " + translateDevice(subsystemVendorId, subsystemId) + "\n";
return dSEDpciContextInfo; return dSEDpciContextInfo;
} }

View File

@ -69,25 +69,25 @@ public class EvEfiSpdmDeviceSecurityEvent {
spdmInfo = " Signature = SPDM Device Sec2\n"; spdmInfo = " Signature = SPDM Device Sec2\n";
// if (dsedVersion.equals("0200")) { if (dsedVersion.equals("0200")) {
// dsed = new DeviceSecurityEventData2(eventData); dsed = new DeviceSecurityEventData2(eventData);
// spdmInfo += dsed.toString(); spdmInfo += dsed.toString();
// } }
// else { else {
// spdmInfo += " Incompatible version for DeviceSecurityEventData2: " + dsedVersion + "\n"; spdmInfo += " Incompatible version for DeviceSecurityEventData2: " + dsedVersion + "\n";
// } }
} }
else if (dsedSignature.contains("SPDM Device Sec")) { // implies Device Security event else if (dsedSignature.contains("SPDM Device Sec")) { // implies Device Security event
spdmInfo = " Signature = SPDM Device Sec\n"; spdmInfo = " Signature = SPDM Device Sec\n";
// if (dsedVersion.equals("0100")) { if (dsedVersion.equals("0100")) {
// dsed = new DeviceSecurityEventData(eventData); dsed = new DeviceSecurityEventData(eventData);
// spdmInfo += dsed.toString(); spdmInfo += dsed.toString();
// } }
// else { else {
// spdmInfo += " Incompatible version for DeviceSecurityEventData: " + dsedVersion + "\n"; spdmInfo += " Incompatible version for DeviceSecurityEventData: " + dsedVersion + "\n";
// } }
} }
else { else {
spdmInfo = " Signature = Undetermined value: " + dsedSignature + "\n"; spdmInfo = " Signature = Undetermined value: " + dsedSignature + "\n";

View File

@ -81,14 +81,14 @@ public class NvIndexInstanceEventLogData {
nvIndexInstanceInfo += " Signature = SPDM Device Sec2\n"; nvIndexInstanceInfo += " Signature = SPDM Device Sec2\n";
// if (dsedVersion.equals("0200")) { if (dsedVersion.equals("0200")) {
// dsed = new DeviceSecurityEventData2(dsedEventData); dsed = new DeviceSecurityEventData2(dsedEventData);
// nvIndexInstanceInfo += dsed.toString(); nvIndexInstanceInfo += dsed.toString();
// } }
// else { else {
// nvIndexInstanceInfo += " Incompatible version for DeviceSecurityEventData2: " nvIndexInstanceInfo += " Incompatible version for DeviceSecurityEventData2: "
// + dsedVersion + "\n"; + dsedVersion + "\n";
// } }
} }
else { else {
nvIndexInstanceInfo = " Signature error: should be \'SPDM Device Sec2\' but is " nvIndexInstanceInfo = " Signature error: should be \'SPDM Device Sec2\' but is "

View File

@ -1,5 +1,9 @@
package hirs.tcg_eventlog; package hirs.tcg_eventlog;
import hirs.utils.HexUtils;
import hirs.utils.tpm.eventlog.TCGEventLog;
import hirs.utils.tpm.eventlog.TpmPcrEvent;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.nio.charset.Charset; import java.nio.charset.Charset;
@ -12,10 +16,6 @@ import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import hirs.utils.tpm.eventlog.TCGEventLog;
import hirs.utils.tpm.eventlog.TpmPcrEvent;
import hirs.utils.HexUtils;
import static hirs.utils.tpm.eventlog.uefi.UefiConstants.FILESTATUS_FROM_CODE; import static hirs.utils.tpm.eventlog.uefi.UefiConstants.FILESTATUS_FROM_CODE;
import static hirs.utils.tpm.eventlog.uefi.UefiConstants.FILESTATUS_NOT_ACCESSIBLE; import static hirs.utils.tpm.eventlog.uefi.UefiConstants.FILESTATUS_NOT_ACCESSIBLE;