]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/SnpDxe/Stop.c
1). Fix the debug level for DEBUG macro
[mirror_edk2.git] / MdeModulePkg / Universal / Network / SnpDxe / Stop.c
index 2eedfcd72617f880d4b7f91a5270a3daeb4110b3..f707ed4fa16143c250dbfd22382abb532c30d1a5 100644 (file)
@@ -16,14 +16,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 \r
 /**\r
-  this routine calls undi to stop the interface and changes the snp state.\r
+  Call UNDI to stop the interface and changes the snp state.\r
 \r
-  @param  Snp   pointer to snp driver structure\r
-\r
-  @retval EFI_INVALID_PARAMETER  invalid parameter\r
-  @retval EFI_NOT_STARTED        SNP is not started\r
-  @retval EFI_DEVICE_ERROR       SNP is not initialized\r
-  @retval EFI_UNSUPPORTED        operation unsupported\r
+  @param  Snp   Pointer to snp driver structure\r
+   \r
+  @retval EFI_SUCCESS            The network interface was stopped.\r
+  @retval EFI_DEVICE_ERROR       SNP is not initialized.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -45,13 +43,13 @@ PxeStop (
   //\r
   // Issue UNDI command\r
   //\r
-  DEBUG ((EFI_D_NET, "\nsnp->undi.stop()  "));\r
+  DEBUG ((EFI_D_INFO | EFI_D_NET, "\nsnp->undi.stop()  "));\r
 \r
   (*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);\r
 \r
   if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {\r
     DEBUG (\r
-      (EFI_D_WARN,\r
+      (EFI_D_ERROR,\r
       "\nsnp->undi.stop()  %xh:%xh\n",\r
       Snp->Cdb.StatCode,\r
       Snp->Cdb.StatFlags)\r
@@ -74,15 +72,18 @@ PxeStop (
   interface is in the started state. If the network interface was successfully\r
   stopped, then EFI_SUCCESS will be returned.\r
   \r
-  @param  This                    A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL instance.\r
+  @param  This                    A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL \r
+                                  instance.\r
   \r
   \r
   @retval EFI_SUCCESS             The network interface was stopped.\r
   @retval EFI_NOT_STARTED         The network interface has not been started.\r
-  @retval EFI_INVALID_PARAMETER   This parameter was NULL or did not point to a valid \r
-                                  EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
-  @retval EFI_DEVICE_ERROR        The command could not be sent to the network interface.\r
-  @retval EFI_UNSUPPORTED         This function is not supported by the network interface.\r
+  @retval EFI_INVALID_PARAMETER   This parameter was NULL or did not point to a \r
+                                  valid EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
+  @retval EFI_DEVICE_ERROR        The command could not be sent to the network \r
+                                  interface.\r
+  @retval EFI_UNSUPPORTED         This function is not supported by the network \r
+                                  interface.\r
 \r
 **/\r
 EFI_STATUS\r