Status = XenStoreWaitForEvent (xs.EventChannelEvent,\r
EFI_TIMER_PERIOD_SECONDS (1));\r
if (Status == EFI_TIMEOUT) {\r
- DEBUG ((EFI_D_WARN, "XenStore Write, waiting for a ring event.\n"));\r
+ DEBUG ((DEBUG_WARN, "XenStore Write, waiting for a ring event.\n"));\r
}\r
continue;\r
}\r
Status = XenStoreWaitForEvent (xs.EventChannelEvent,\r
EFI_TIMER_PERIOD_SECONDS (1));\r
if (Status == EFI_TIMEOUT) {\r
- DEBUG ((EFI_D_WARN, "XenStore Read, waiting for a ring event.\n"));\r
+ DEBUG ((DEBUG_WARN, "XenStore Read, waiting for a ring event.\n"));\r
}\r
continue;\r
}\r
Status = XenStoreReadStore (&Message->Header, sizeof (Message->Header));\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
FreePool (Message);\r
- DEBUG ((EFI_D_ERROR, "XenStore: Error read store (%d)\n", Status));\r
+ DEBUG ((DEBUG_ERROR, "XenStore: Error read store (%d)\n", Status));\r
return Status;\r
}\r
\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
FreePool (Body);\r
FreePool (Message);\r
- DEBUG ((EFI_D_ERROR, "XenStore: Error read store (%d)\n", Status));\r
+ DEBUG ((DEBUG_ERROR, "XenStore: Error read store (%d)\n", Status));\r
return Status;\r
}\r
Body[Message->Header.len] = '\0';\r
EfiAcquireLock (&xs.RegisteredWatchesLock);\r
Message->u.Watch.Handle =\r
XenStoreFindWatch (Message->u.Watch.Vector[XS_WATCH_TOKEN]);\r
- DEBUG ((EFI_D_INFO, "XenStore: Watch event %a\n",\r
+ DEBUG ((DEBUG_INFO, "XenStore: Watch event %a\n",\r
Message->u.Watch.Vector[XS_WATCH_TOKEN]));\r
if (Message->u.Watch.Handle != NULL) {\r
EfiAcquireLock (&xs.WatchEventsLock);\r
InsertHeadList (&xs.WatchEvents, &Message->Link);\r
EfiReleaseLock (&xs.WatchEventsLock);\r
} else {\r
- DEBUG ((EFI_D_WARN, "XenStore: Watch handle %a not found\n",\r
+ DEBUG ((DEBUG_WARN, "XenStore: Watch handle %a not found\n",\r
Message->u.Watch.Vector[XS_WATCH_TOKEN]));\r
FreePool((VOID*)Message->u.Watch.Vector);\r
FreePool(Message);\r
return gXenStoreErrors[Index].Status;\r
}\r
}\r
- DEBUG ((EFI_D_WARN, "XenStore gave unknown error %a\n", ErrorStr));\r
+ DEBUG ((DEBUG_WARN, "XenStore gave unknown error %a\n", ErrorStr));\r
return XENSTORE_STATUS_EINVAL;\r
}\r
\r
XENSTORE_STATUS Status;\r
Status = XenStoreProcessMessage ();\r
if (Status != XENSTORE_STATUS_SUCCESS && Status != XENSTORE_STATUS_EAGAIN) {\r
- DEBUG ((EFI_D_ERROR, "XenStore, error while reading the ring (%d).",\r
+ DEBUG ((DEBUG_ERROR, "XenStore, error while reading the ring (%d).",\r
Status));\r
return Status;\r
}\r
\r
Status = XenStoreWriteStore (&Message, sizeof (Message));\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_ERROR, "XenStoreTalkv failed %d\n", Status));\r
+ DEBUG ((DEBUG_ERROR, "XenStoreTalkv failed %d\n", Status));\r
goto Error;\r
}\r
\r
for (Index = 0; Index < NumRequests; Index++) {\r
Status = XenStoreWriteStore (WriteRequest[Index].Data, WriteRequest[Index].Len);\r
if (Status != XENSTORE_STATUS_SUCCESS) {\r
- DEBUG ((EFI_D_ERROR, "XenStoreTalkv failed %d\n", Status));\r
+ DEBUG ((DEBUG_ERROR, "XenStoreTalkv failed %d\n", Status));\r
goto Error;\r
}\r
}\r
while (XenStore->rsp_prod != XenStore->rsp_cons) {\r
Status = gBS->CheckEvent (TimerEvent);\r
if (!EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_WARN, "XENSTORE response ring is not quiescent "\r
+ DEBUG ((DEBUG_WARN, "XENSTORE response ring is not quiescent "\r
"(%08x:%08x): fixing up\n",\r
XenStore->rsp_cons, XenStore->rsp_prod));\r
XenStore->rsp_cons = XenStore->rsp_prod;\r
xs.EventChannel = (evtchn_port_t)XenHypercallHvmGetParam (HVM_PARAM_STORE_EVTCHN);\r
XenStoreGpfn = (UINTN)XenHypercallHvmGetParam (HVM_PARAM_STORE_PFN);\r
xs.XenStore = (VOID *) (XenStoreGpfn << EFI_PAGE_SHIFT);\r
- DEBUG ((EFI_D_INFO, "XenBusInit: XenBus rings @%p, event channel %x\n",\r
+ DEBUG ((DEBUG_INFO, "XenBusInit: XenBus rings @%p, event channel %x\n",\r
xs.XenStore, xs.EventChannel));\r
\r
InitializeListHead (&xs.ReplyList);\r
if (!IsListEmpty (&xs.RegisteredWatches)) {\r
XENSTORE_WATCH *Watch;\r
LIST_ENTRY *Entry;\r
- DEBUG ((EFI_D_WARN, "XenStore: RegisteredWatches is not empty, cleaning up..."));\r
+ DEBUG ((DEBUG_WARN, "XenStore: RegisteredWatches is not empty, cleaning up..."));\r
Entry = GetFirstNode (&xs.RegisteredWatches);\r
while (!IsNull (&xs.RegisteredWatches, Entry)) {\r
Watch = XENSTORE_WATCH_FROM_LINK (Entry);\r
//\r
if (!IsListEmpty (&xs.WatchEvents)) {\r
LIST_ENTRY *Entry;\r
- DEBUG ((EFI_D_WARN, "XenStore: WatchEvents is not empty, cleaning up..."));\r
+ DEBUG ((DEBUG_WARN, "XenStore: WatchEvents is not empty, cleaning up..."));\r
Entry = GetFirstNode (&xs.WatchEvents);\r
while (!IsNull (&xs.WatchEvents, Entry)) {\r
XENSTORE_MESSAGE *Message = XENSTORE_MESSAGE_FROM_LINK (Entry);\r