}\r
\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_WARN, "%a: LocateHandleBuffer(): %r\n", __FUNCTION__,\r
+ DEBUG ((DEBUG_WARN, "%a: LocateHandleBuffer(): %r\n", __FUNCTION__,\r
Status));\r
return;\r
}\r
\r
OrigAttrs = AllocatePool (NoHandles * sizeof *OrigAttrs);\r
if (OrigAttrs == NULL) {\r
- DEBUG ((EFI_D_WARN, "%a: AllocatePool(): out of resources\n",\r
+ DEBUG ((DEBUG_WARN, "%a: AllocatePool(): out of resources\n",\r
__FUNCTION__));\r
goto FreeHandles;\r
}\r
Status = PciIo->Attributes (PciIo, EfiPciIoAttributeOperationGet, 0,\r
&OrigAttrs[Idx].PciAttributes);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_WARN, "%a: EfiPciIoAttributeOperationGet: %r\n",\r
+ DEBUG ((DEBUG_WARN, "%a: EfiPciIoAttributeOperationGet: %r\n",\r
__FUNCTION__, Status));\r
goto RestoreAttributes;\r
}\r
Status = PciIo->Attributes (PciIo, EfiPciIoAttributeOperationSupported, 0,\r
&Attributes);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_WARN, "%a: EfiPciIoAttributeOperationSupported: %r\n",\r
+ DEBUG ((DEBUG_WARN, "%a: EfiPciIoAttributeOperationSupported: %r\n",\r
__FUNCTION__, Status));\r
goto RestoreAttributes;\r
}\r
Status = PciIo->Attributes (PciIo, EfiPciIoAttributeOperationEnable,\r
Attributes, NULL);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_WARN, "%a: EfiPciIoAttributeOperationEnable: %r\n",\r
+ DEBUG ((DEBUG_WARN, "%a: EfiPciIoAttributeOperationEnable: %r\n",\r
__FUNCTION__, Status));\r
goto RestoreAttributes;\r
}\r