This patch is to remove some redundant DEBUG output in SNP transmit function.
In case of return EFI_NOT_READY in PxeTransmit, the SNP driver is indicate
the caller that the transmit queue is full, it's a very common situation druing
transmit, not a critical error. So the patch move the DEBUG lever to EFI_D_NET.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
/** @file\r
Implementation of transmitting a packet.\r
\r
/** @file\r
Implementation of transmitting a packet.\r
\r
-Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2017, 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
(*Snp->IssueUndi32Command) ((UINT64) (UINTN) &Snp->Cdb);\r
\r
DEBUG ((EFI_D_NET, "\nexit Snp->undi.transmit() "));\r
(*Snp->IssueUndi32Command) ((UINT64) (UINTN) &Snp->Cdb);\r
\r
DEBUG ((EFI_D_NET, "\nexit Snp->undi.transmit() "));\r
- DEBUG ((EFI_D_NET, "\nSnp->Cdb.StatCode == %r", Snp->Cdb.StatCode));\r
\r
//\r
// we will unmap the buffers in get_status call, not here\r
\r
//\r
// we will unmap the buffers in get_status call, not here\r
case PXE_STATCODE_QUEUE_FULL:\r
case PXE_STATCODE_BUSY:\r
Status = EFI_NOT_READY;\r
case PXE_STATCODE_QUEUE_FULL:\r
case PXE_STATCODE_BUSY:\r
Status = EFI_NOT_READY;\r
+ DEBUG (\r
+ (EFI_D_NET,\r
+ "\nSnp->undi.transmit() %xh:%xh\n",\r
+ Snp->Cdb.StatFlags,\r
+ Snp->Cdb.StatCode)\r
+ );\r
+ DEBUG (\r
+ (EFI_D_ERROR,\r
+ "\nSnp->undi.transmit() %xh:%xh\n",\r
+ Snp->Cdb.StatFlags,\r
+ Snp->Cdb.StatCode)\r
+ );\r
Status = EFI_DEVICE_ERROR;\r
}\r
\r
Status = EFI_DEVICE_ERROR;\r
}\r
\r
- DEBUG (\r
- (EFI_D_ERROR,\r
- "\nSnp->undi.transmit() %xh:%xh\n",\r
- Snp->Cdb.StatFlags,\r
- Snp->Cdb.StatCode)\r
- );\r
-\r