Skip to content

Commit a380775

Browse files
makubackijyao1
authored andcommitted
SpdmDeviceSecurityPei: Fix imbalanced DEBUG macro
1 parent c0fcefd commit a380775

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

DeviceSecurityTestPkg/SpdmDeviceSecurityPei/SpdmDeviceMeasurement.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ InternalDumpData (
2727
This function returns the SPDM device type for TCG SPDM event.
2828
2929
@param[in] SpdmContext The SPDM context for the device.
30-
30+
3131
@return TCG SPDM device type
3232
**/
3333
UINT32
@@ -49,7 +49,7 @@ GetSpdmDeviceType (
4949
This function returns the SPDM device measurement context size for TCG SPDM event.
5050
5151
@param[in] SpdmContext The SPDM context for the device.
52-
52+
5353
@return TCG SPDM device measurement context size
5454
**/
5555
UINTN
@@ -73,7 +73,7 @@ GetDeviceMeasurementContextSize (
7373
@param[in] SpdmContext The SPDM context for the device.
7474
@param[in, OUT] DeviceContext The TCG SPDM PCI device measurement context.
7575
@param[in] DeviceContextSize The size of TCG SPDM PCI device measurement context.
76-
76+
7777
@retval EFI_SUCCESS The TCG SPDM PCI device measurement context is returned.
7878
**/
7979
EFI_STATUS
@@ -91,7 +91,7 @@ CreatePciDeviceMeasurementContext (
9191
if (DeviceContextSize != sizeof(*PciContext)) {
9292
return EFI_BUFFER_TOO_SMALL;
9393
}
94-
94+
9595
PciIo = SpdmDriverContext->DeviceIo;
9696
Status = PciIo->Pci.Read (PciIo, EfiPciIoWidthUint8, 0, sizeof(PciData), &PciData);
9797
ASSERT_EFI_ERROR(Status);
@@ -123,7 +123,7 @@ CreatePciDeviceMeasurementContext (
123123
@param[in] SpdmContext The SPDM context for the device.
124124
@param[in, OUT] DeviceContext The TCG SPDM device measurement context.
125125
@param[in] DeviceContextSize The size of TCG SPDM device measurement context.
126-
126+
127127
@retval EFI_SUCCESS The TCG SPDM device measurement context is returned.
128128
@retval EFI_UNSUPPORTED The TCG SPDM device measurement context is unsupported.
129129
**/
@@ -145,7 +145,7 @@ CreateDeviceMeasurementContext (
145145

146146
/**
147147
This function extend the PCI digest from the DvSec register.
148-
148+
149149
@param[in] SpdmContext The SPDM context for the device.
150150
@param[in] MeasurementRecordLength The length of the SPDM measurement record
151151
@param[in] MeasurementRecord The SPDM measurement record
@@ -189,7 +189,7 @@ ExtendMeasurement (
189189
SpdmMeasurementBlockDmtfHeader = (VOID *)(SpdmMeasurementBlockCommonHeader + 1);
190190
Digest = (SpdmMeasurementBlockDmtfHeader + 1);
191191
DigestSize = MeasurementRecordLength - sizeof(SPDM_MEASUREMENT_BLOCK_DMTF);
192-
192+
193193
DEBUG((DEBUG_INFO, "SpdmMeasurementBlockCommonHeader\n"));
194194
DEBUG((DEBUG_INFO, " Index - 0x%02x\n", SpdmMeasurementBlockCommonHeader->index));
195195
DEBUG((DEBUG_INFO, " MeasurementSpecification - 0x%02x\n", SpdmMeasurementBlockCommonHeader->measurement_specification));
@@ -289,7 +289,7 @@ ExtendMeasurement (
289289

290290
/**
291291
This function executes SPDM measurement and extend to TPM.
292-
292+
293293
@param[in] SpdmContext The SPDM context for the device.
294294
@param[out] DeviceSecurityState The Device Security state associated with the device.
295295
**/
@@ -325,7 +325,7 @@ SpdmSendReceiveGetMeasurement (
325325
return Status;
326326
}
327327
DEBUG((DEBUG_INFO, "NumberOfBlocks - 0x%x\n", NumberOfBlocks));
328-
328+
329329
for (Index = 1; Index <= NumberOfBlocks; Index++) {
330330
DEBUG((DEBUG_INFO, "Index - 0x%x\n", Index));
331331
//
@@ -347,7 +347,7 @@ SpdmSendReceiveGetMeasurement (
347347
return Status;
348348
}
349349

350-
DEBUG((DEBUG_INFO, "ExtendMeasurement...\n", ExtendMeasurement));
350+
DEBUG((DEBUG_INFO, "ExtendMeasurement...\n"));
351351
Status = ExtendMeasurement (SpdmDriverContext, MeasurementRecordLength, MeasurementRecord);
352352
if (Status != EFI_SUCCESS) {
353353
return Status;
@@ -359,7 +359,7 @@ SpdmSendReceiveGetMeasurement (
359359

360360
/**
361361
This function executes SPDM measurement and extend to TPM.
362-
362+
363363
@param[in] SpdmContext The SPDM context for the device.
364364
@param[out] DeviceSecurityState The Device Security state associated with the device.
365365
**/
@@ -384,7 +384,7 @@ DoMeasurementViaSpdm (
384384

385385
/**
386386
The device driver uses this service to measure an SPDM device.
387-
387+
388388
@param[in] SpdmContext The SPDM context for the device.
389389
@param[out] DeviceSecurityState The Device Security state associated with the device.
390390
**/

0 commit comments

Comments
 (0)