mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-07 22:04:27 +02:00
Fix a bug in TCP driver’s component name print function.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Dong, Guo <guo.dong@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14994 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
9b8e61be26
commit
c5fba0fea4
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
UEFI Component Name(2) protocol implementation for Tcp4Dxe driver.
|
UEFI Component Name(2) protocol implementation for Tcp4Dxe driver.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2005 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -259,7 +259,7 @@ UpdateName (
|
|||||||
Status = Tcp4->GetModeData (Tcp4, NULL, &Tcp4ConfigData, NULL, NULL, NULL);
|
Status = Tcp4->GetModeData (Tcp4, NULL, &Tcp4ConfigData, NULL, NULL, NULL);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
UnicodeSPrint (HandleName, sizeof (HandleName),
|
UnicodeSPrint (HandleName, sizeof (HandleName),
|
||||||
L"TCPv4 (SrcPort=%d, DestPort=&d, ActiveFlag=%s)",
|
L"TCPv4 (SrcPort=%d, DestPort=%d, ActiveFlag=%s)",
|
||||||
Tcp4ConfigData.AccessPoint.StationPort,
|
Tcp4ConfigData.AccessPoint.StationPort,
|
||||||
Tcp4ConfigData.AccessPoint.RemotePort,
|
Tcp4ConfigData.AccessPoint.RemotePort,
|
||||||
(Tcp4ConfigData.AccessPoint.ActiveFlag ? L"TRUE" : L"FALSE")
|
(Tcp4ConfigData.AccessPoint.ActiveFlag ? L"TRUE" : L"FALSE")
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Implementation of protocols EFI_COMPONENT_NAME_PROTOCOL and
|
Implementation of protocols EFI_COMPONENT_NAME_PROTOCOL and
|
||||||
EFI_COMPONENT_NAME2_PROTOCOL.
|
EFI_COMPONENT_NAME2_PROTOCOL.
|
||||||
|
|
||||||
Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
@ -256,7 +256,7 @@ UpdateTcp4Name (
|
|||||||
Status = Tcp4->GetModeData (Tcp4, NULL, &Tcp4ConfigData, NULL, NULL, NULL);
|
Status = Tcp4->GetModeData (Tcp4, NULL, &Tcp4ConfigData, NULL, NULL, NULL);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
UnicodeSPrint (HandleName, sizeof (HandleName),
|
UnicodeSPrint (HandleName, sizeof (HandleName),
|
||||||
L"TCPv4 (SrcPort=%d, DestPort=&d, ActiveFlag=%s)",
|
L"TCPv4 (SrcPort=%d, DestPort=%d, ActiveFlag=%s)",
|
||||||
Tcp4ConfigData.AccessPoint.StationPort,
|
Tcp4ConfigData.AccessPoint.StationPort,
|
||||||
Tcp4ConfigData.AccessPoint.RemotePort,
|
Tcp4ConfigData.AccessPoint.RemotePort,
|
||||||
(Tcp4ConfigData.AccessPoint.ActiveFlag ? L"TRUE" : L"FALSE")
|
(Tcp4ConfigData.AccessPoint.ActiveFlag ? L"TRUE" : L"FALSE")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user