]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/Network/PxeDhcp4/Dxe/PxeDhcp4InitSelect.c
1. Removed #ifdef SNP_DEBUG and used debug lib to output information
[mirror_edk2.git] / EdkModulePkg / Universal / Network / PxeDhcp4 / Dxe / PxeDhcp4InitSelect.c
index 3cb7f3f4bec6d5a84133aa7187ab35f344c96cda..1b500c57b3dcdd46c477fc248b74a95ee5462ec7 100644 (file)
@@ -19,11 +19,6 @@ Abstract:
 \r
 #include "PxeDhcp4.h"\r
 \r
-#define DebugPrint(x)\r
-//\r
-// #define DebugPrint(x) Aprint x\r
-//\r
-/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */\r
 STATIC\r
 INTN\r
 offer_verify (\r
@@ -400,7 +395,7 @@ PxeDhcp4Init (
     Private->offer_list = NULL;\r
     Private->callback   = NULL;\r
 \r
-    DebugPrint (("%a:%d:%r\n", __FILE__, __LINE__, EfiStatus));\r
+    DEBUG ((EFI_D_ERROR, "%r\n", EfiStatus));\r
     return EfiStatus;\r
   }\r
 \r
@@ -687,7 +682,7 @@ PxeDhcp4Select (
   EfiStatus = add_opt (&request, srvid);\r
 \r
   if (EFI_ERROR (EfiStatus)) {\r
-    DebugPrint (("%a:%d:%r\n", __FILE__, __LINE__, EfiStatus));\r
+    DEBUG ((EFI_D_ERROR, "%r\n", EfiStatus));\r
     Private->callback = NULL;\r
     return EfiStatus;\r
   }\r
@@ -702,7 +697,7 @@ PxeDhcp4Select (
   EfiStatus = add_opt (&request, op);\r
 \r
   if (EFI_ERROR (EfiStatus)) {\r
-    DebugPrint (("%a:%d:%r\n", __FILE__, __LINE__, EfiStatus));\r
+    DEBUG ((EFI_D_ERROR, "%r\n", EfiStatus));\r
     Private->callback = NULL;\r
     return EfiStatus;\r
   }\r
@@ -724,7 +719,7 @@ PxeDhcp4Select (
                 );\r
 \r
   if (EFI_ERROR (EfiStatus)) {\r
-    DebugPrint (("%a:%d:%r\n", __FILE__, __LINE__, EfiStatus));\r
+    DEBUG ((EFI_D_ERROR, "%r\n", EfiStatus));\r
     Private->callback = NULL;\r
     return EfiStatus;\r
   }\r