]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/SnpDxe/Get_status.c
1). Fix the debug level for DEBUG macro
[mirror_edk2.git] / MdeModulePkg / Universal / Network / SnpDxe / Get_status.c
index 17078c81cfc9339e330d84289990d9e1587ac806..e2c911dfd2b32dc131c0cdd5d0ac6590619b51f5 100644 (file)
@@ -16,15 +16,19 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "Snp.h"\r
 \r
 /**\r
-  this routine calls undi to get the status of the interrupts, get the list of\r
-  transmit buffers that completed transmitting!\r
-\r
-  @param  Snp                     pointer to snp driver structure\r
-  @param  InterruptStatusPtr      a non null pointer gets the interrupt status\r
-  @param  TransmitBufferListPtrs  a non null ointer gets the list of pointers of\r
-                                  previously  transmitted buffers whose\r
-                                  transmission was completed  asynchrnously.\r
-\r
+  Call undi to get the status of the interrupts, get the list of transmit \r
+  buffers that completed transmitting. \r
+\r
+  @param  Snp                     Pointer to snp driver structure.\r
+  @param  InterruptStatusPtr      A non null pointer to contain the interrupt \r
+                                  status.\r
+  @param  TransmitBufferListPtrs  A non null pointer to contain the list of \r
+                                  pointers of previous transmitted buffers whose\r
+                                  transmission was completed asynchrnously.\r
+   \r
+  @retval EFI_SUCCESS         The status of the network interface was retrieved.\r
+  @retval EFI_DEVICE_ERROR    The command could not be sent to the network \r
+                              interface.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -68,13 +72,13 @@ PxeGetStatus (
   //\r
   // Issue UNDI command and check result.\r
   //\r
-  DEBUG ((EFI_D_NET, "\nSnp->undi.get_status()  "));\r
+  DEBUG ((EFI_D_INFO | EFI_D_NET, "\nSnp->undi.get_status()  "));\r
 \r
   (*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);\r
 \r
   if (Snp->Cdb.StatCode != EFI_SUCCESS) {\r
     DEBUG (\r
-      (EFI_D_NET,\r
+      (EFI_D_ERROR | EFI_D_NET,\r
       "\nSnp->undi.get_status()  %xh:%xh\n",\r
       Snp->Cdb.StatFlags,\r
       Snp->Cdb.StatFlags)\r