]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/XenBusDxe/XenStore.c
OvmfPkg/MptScsiDxe: Install DriverBinding Protocol
[mirror_edk2.git] / OvmfPkg / XenBusDxe / XenStore.c
index 41fcb390888c9f9282a49d119629b23cd6d98167..e5cca108e06b3d39223c25d108f47d1df7250daf 100644 (file)
@@ -467,7 +467,7 @@ XenStoreWriteStore (
       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
@@ -546,7 +546,7 @@ XenStoreReadStore (
       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
@@ -617,7 +617,7 @@ XenStoreProcessMessage (
   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
@@ -626,7 +626,7 @@ XenStoreProcessMessage (
   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
@@ -638,14 +638,14 @@ XenStoreProcessMessage (
     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
@@ -711,7 +711,7 @@ XenStoreGetError (
       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
@@ -738,7 +738,7 @@ XenStoreReadReply (
     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
@@ -803,14 +803,14 @@ XenStoreTalkv (
 \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
@@ -1006,7 +1006,7 @@ XenStoreInitComms (
   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
@@ -1046,7 +1046,7 @@ XenStoreInit (
   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
@@ -1076,7 +1076,7 @@ XenStoreDeinit (
   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
@@ -1092,7 +1092,7 @@ XenStoreDeinit (
   //\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