]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Make the DEBUG info consistent in SNP driver.
authorFu Siyuan <siyuan.fu@intel.com>
Fri, 5 Feb 2016 02:15:37 +0000 (10:15 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Wed, 17 Feb 2016 00:50:54 +0000 (08:50 +0800)
SNP driver will print the UNDI returned StatFlags:StatCode with DEBUG macro,
while in some please it uses the reverse order (StatCode:StatFlags). This patch
is to make the print info consistent, that StatFlags always come first.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
MdeModulePkg/Universal/Network/SnpDxe/Get_status.c
MdeModulePkg/Universal/Network/SnpDxe/Stop.c

index fad2e9821253e796d879e09d84b26e6e92abac5f..4da07b503f00b55620ab99ef8fbfd5464f78c7ea 100644 (file)
@@ -85,7 +85,7 @@ PxeGetStatus (
       (EFI_D_NET,\r
       "\nSnp->undi.get_status()  %xh:%xh\n",\r
       Snp->Cdb.StatFlags,\r
       (EFI_D_NET,\r
       "\nSnp->undi.get_status()  %xh:%xh\n",\r
       Snp->Cdb.StatFlags,\r
-      Snp->Cdb.StatFlags)\r
+      Snp->Cdb.StatCode)\r
       );\r
 \r
     return EFI_DEVICE_ERROR;\r
       );\r
 \r
     return EFI_DEVICE_ERROR;\r
index 730e3974521532733250ff1db2dd01af9c21c958..a52d3b116390dc8cd3a22c8b84d5607878a71b68 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
     Implementation of stopping a network interface.\r
  \r
 /** @file\r
     Implementation of stopping a network interface.\r
  \r
-Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials are licensed \r
 and made available under the terms and conditions of the BSD License which \r
 accompanies this distribution. The full text of the license may be found at \r
 This program and the accompanying materials are licensed \r
 and made available under the terms and conditions of the BSD License which \r
 accompanies this distribution. The full text of the license may be found at \r
@@ -51,8 +51,8 @@ PxeStop (
     DEBUG (\r
       (EFI_D_WARN,\r
       "\nsnp->undi.stop()  %xh:%xh\n",\r
     DEBUG (\r
       (EFI_D_WARN,\r
       "\nsnp->undi.stop()  %xh:%xh\n",\r
-      Snp->Cdb.StatCode,\r
-      Snp->Cdb.StatFlags)\r
+      Snp->Cdb.StatFlags,\r
+      Snp->Cdb.StatCode)\r
       );\r
 \r
     return EFI_DEVICE_ERROR;\r
       );\r
 \r
     return EFI_DEVICE_ERROR;\r