]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/SnpDxe/Shutdown.c
1). Fix the debug level for DEBUG macro
[mirror_edk2.git] / MdeModulePkg / Universal / Network / SnpDxe / Shutdown.c
index a996c2c50ae6e90bd6c6ce8e9b3a53f0b016f596..21ed2bfe206898c83755edbc239632695d1868b5 100644 (file)
@@ -16,12 +16,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 \r
 /**\r
-  this routine calls undi to shut down the interface.\r
+  Call UNDI to shut down the interface.\r
 \r
-  @param  Snp   pointer to snp driver structure\r
+  @param  Snp   Pointer to snp driver structure.\r
 \r
-  @retval EFI_SUCCESS        UNDI is shut down successfully\r
-  @retval EFI_DEVICE_ERROR   UNDI could not be shut down\r
+  @retval EFI_SUCCESS        UNDI is shut down successfully.\r
+  @retval EFI_DEVICE_ERROR   UNDI could not be shut down.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -43,7 +43,7 @@ PxeShutdown (
   //\r
   // Issue UNDI command and check result.\r
   //\r
-  DEBUG ((EFI_D_NET, "\nsnp->undi.shutdown()  "));\r
+  DEBUG ((EFI_D_INFO | EFI_D_NET, "\nsnp->undi.shutdown()  "));\r
 \r
   (*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);\r
 \r
@@ -51,7 +51,7 @@ PxeShutdown (
     //\r
     // UNDI could not be shutdown. Return UNDI error.\r
     //\r
-    DEBUG ((EFI_D_WARN, "\nsnp->undi.shutdown()  %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode));\r
+    DEBUG ((EFI_D_ERROR, "\nsnp->undi.shutdown()  %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode));\r
 \r
     return EFI_DEVICE_ERROR;\r
   }\r