Status = XENSTORE_STATUS_FAIL;\r
break;\r
}\r
- DEBUG ((EFI_D_INFO,\r
+ DEBUG ((DEBUG_INFO,\r
"XenPvBlk: waiting backend state %d, current: %d\n",\r
ExpectedState, State));\r
XenBusIo->WaitForWatch (XenBusIo, Dev->StateWatchToken);\r
if (Dev->MediaInfo.CdRom) {\r
Status = XenBusIo->XsBackendRead (XenBusIo, XST_NIL, "params", (VOID**)&Params);\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_ERROR, "%a: Failed to read params (%d)\n", __FUNCTION__, Status));\r
+ DEBUG ((DEBUG_ERROR, "%a: Failed to read params (%d)\n", __FUNCTION__, Status));\r
goto Error;\r
}\r
if (AsciiStrLen (Params) == 0 || AsciiStrCmp (Params, "aio:") == 0) {\r
FreePool (Params);\r
- DEBUG ((EFI_D_INFO, "%a: Empty cdrom\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_INFO, "%a: Empty cdrom\n", __FUNCTION__));\r
goto Error;\r
}\r
FreePool (Params);\r
\r
Status = XenBusReadUint64 (XenBusIo, "backend-id", FALSE, &Value);\r
if (Status != XENSTORE_STATUS_SUCCESS || Value > MAX_UINT16) {\r
- DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to get backend-id (%d)\n",\r
+ DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to get backend-id (%d)\n",\r
Status));\r
goto Error;\r
}\r
Again:\r
Status = XenBusIo->XsTransactionStart (XenBusIo, &Transaction);\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_WARN, "XenPvBlk: Failed to start transaction, %d\n", Status));\r
+ DEBUG ((DEBUG_WARN, "XenPvBlk: Failed to start transaction, %d\n", Status));\r
goto Error;\r
}\r
\r
Status = XenBusIo->XsPrintf (XenBusIo, &Transaction, NodeName, "ring-ref", "%d",\r
Dev->RingRef);\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to write ring-ref.\n"));\r
+ DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to write ring-ref.\n"));\r
goto AbortTransaction;\r
}\r
Status = XenBusIo->XsPrintf (XenBusIo, &Transaction, NodeName,\r
"event-channel", "%d", Dev->EventChannel);\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to write event-channel.\n"));\r
+ DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to write event-channel.\n"));\r
goto AbortTransaction;\r
}\r
Status = XenBusIo->XsPrintf (XenBusIo, &Transaction, NodeName,\r
"protocol", "%a", XEN_IO_PROTO_ABI_NATIVE);\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to write protocol.\n"));\r
+ DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to write protocol.\n"));\r
goto AbortTransaction;\r
}\r
\r
Status = XenBusIo->SetState (XenBusIo, &Transaction, XenbusStateConnected);\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to switch state.\n"));\r
+ DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to switch state.\n"));\r
goto AbortTransaction;\r
}\r
\r
//\r
Status = XenPvBlkWaitForBackendState (Dev, XenbusStateConnected, &State);\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_ERROR,\r
+ DEBUG ((DEBUG_ERROR,\r
"XenPvBlk: backend for %a/%d not available, rc=%d state=%d\n",\r
XenBusIo->Type, XenBusIo->DeviceId, Status, State));\r
goto Error2;\r
//\r
// This is not supported by the driver.\r
//\r
- DEBUG ((EFI_D_ERROR, "XenPvBlk: Unsupported sector-size value %Lu, "\r
+ DEBUG ((DEBUG_ERROR, "XenPvBlk: Unsupported sector-size value %Lu, "\r
"it must be a multiple of 512\n", Value));\r
goto Error2;\r
}\r
Dev->MediaInfo.FeatureFlushCache = FALSE;\r
}\r
\r
- DEBUG ((EFI_D_INFO, "XenPvBlk: New disk with %ld sectors of %d bytes\n",\r
+ DEBUG ((DEBUG_INFO, "XenPvBlk: New disk with %ld sectors of %d bytes\n",\r
Dev->MediaInfo.Sectors, Dev->MediaInfo.SectorSize));\r
\r
*DevPtr = Dev;\r
\r
Status = XenBusIo->SetState (XenBusIo, XST_NIL, XenbusStateClosing);\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_ERROR,\r
+ DEBUG ((DEBUG_ERROR,\r
"XenPvBlk: error while changing state to Closing: %d\n",\r
Status));\r
goto Close;\r
\r
Status = XenPvBlkWaitForBackendState (Dev, XenbusStateClosing, NULL);\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_ERROR,\r
+ DEBUG ((DEBUG_ERROR,\r
"XenPvBlk: error while waiting for closing backend state: %d\n",\r
Status));\r
goto Close;\r
\r
Status = XenBusIo->SetState (XenBusIo, XST_NIL, XenbusStateClosed);\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_ERROR,\r
+ DEBUG ((DEBUG_ERROR,\r
"XenPvBlk: error while changing state to Closed: %d\n",\r
Status));\r
goto Close;\r
\r
Status = XenPvBlkWaitForBackendState (Dev, XenbusStateClosed, NULL);\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_ERROR,\r
+ DEBUG ((DEBUG_ERROR,\r
"XenPvBlk: error while waiting for closed backend state: %d\n",\r
Status));\r
goto Close;\r
\r
Status = XenBusIo->SetState (XenBusIo, XST_NIL, XenbusStateInitialising);\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_ERROR,\r
+ DEBUG ((DEBUG_ERROR,\r
"XenPvBlk: error while changing state to initialising: %d\n",\r
Status));\r
goto Close;\r
while (TRUE) {\r
Status = XenBusReadUint64 (XenBusIo, "state", TRUE, &Value);\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_ERROR,\r
+ DEBUG ((DEBUG_ERROR,\r
"XenPvBlk: error while waiting for new backend state: %d\n",\r
Status));\r
goto Close;\r
if (Value <= XenbusStateInitWait || Value >= XenbusStateClosed) {\r
break;\r
}\r
- DEBUG ((EFI_D_INFO,\r
+ DEBUG ((DEBUG_INFO,\r
"XenPvBlk: waiting backend state %d, current: %Lu\n",\r
XenbusStateInitWait, Value));\r
XenBusIo->WaitForWatch (XenBusIo, Dev->StateWatchToken);\r
UINT32 ReturnCode;\r
ReturnCode = XenBusIo->EventChannelNotify (XenBusIo, Dev->EventChannel);\r
if (ReturnCode != 0) {\r
- DEBUG ((EFI_D_ERROR,\r
+ DEBUG ((DEBUG_ERROR,\r
"XenPvBlk: Unexpected return value from EventChannelNotify: %d\n",\r
ReturnCode));\r
}\r
UINT32 ReturnCode;\r
ReturnCode = XenBusIo->EventChannelNotify (XenBusIo, Dev->EventChannel);\r
if (ReturnCode != 0) {\r
- DEBUG ((EFI_D_ERROR,\r
+ DEBUG ((DEBUG_ERROR,\r
"XenPvBlk: Unexpected return value from EventChannelNotify: %d\n",\r
ReturnCode));\r
}\r
INT32 Index;\r
\r
if (Status != BLKIF_RSP_OKAY) {\r
- DEBUG ((EFI_D_ERROR,\r
+ DEBUG ((DEBUG_ERROR,\r
"XenPvBlk: "\r
"%a error %d on %a at sector %Lx, num bytes %Lx\n",\r
Response->operation == BLKIF_OP_READ ? "read" : "write",\r
\r
case BLKIF_OP_WRITE_BARRIER:\r
if (Status != BLKIF_RSP_OKAY) {\r
- DEBUG ((EFI_D_ERROR, "XenPvBlk: write barrier error %d\n", Status));\r
+ DEBUG ((DEBUG_ERROR, "XenPvBlk: write barrier error %d\n", Status));\r
}\r
break;\r
case BLKIF_OP_FLUSH_DISKCACHE:\r
if (Status != BLKIF_RSP_OKAY) {\r
- DEBUG ((EFI_D_ERROR, "XenPvBlk: flush error %d\n", Status));\r
+ DEBUG ((DEBUG_ERROR, "XenPvBlk: flush error %d\n", Status));\r
}\r
break;\r
\r
default:\r
- DEBUG ((EFI_D_ERROR,\r
+ DEBUG ((DEBUG_ERROR,\r
"XenPvBlk: unrecognized block operation %d response (status %d)\n",\r
Response->operation, Status));\r
break;\r