X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=NetworkPkg%2FIpSecDxe%2FIpSecDebug.c;h=0439328d5b41b7460a049efb08e8cd1bc0f78896;hb=ecf98fbcf858b9cb09ff0ac1c2a09c0111b4026b;hp=636e775969d6b3352ef3325f7e3998f35718708b;hpb=1a6fdcb009f9c4afad6dd6706264f970e69ed603;p=mirror_edk2.git
diff --git a/NetworkPkg/IpSecDxe/IpSecDebug.c b/NetworkPkg/IpSecDxe/IpSecDebug.c
index 636e775969..0439328d5b 100644
--- a/NetworkPkg/IpSecDxe/IpSecDebug.c
+++ b/NetworkPkg/IpSecDxe/IpSecDebug.c
@@ -1,15 +1,9 @@
/** @file
The Interfaces of IPsec debug information printing.
- Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
- This program and the accompanying materials
- 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
- http://opensource.org/licenses/bsd-license.php.
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+ SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@@ -167,21 +161,21 @@ IkeDumpState (
)
{
if (Previous >= IKE_STATE_NUM || Current >= IKE_STATE_NUM) {
- return;
+ return;
}
-
+
if (Previous == Current) {
if (IkeVersion == 1) {
DEBUG ((DEBUG_INFO, "\n****Current state is %a\n", mIkev1StateStr[Previous]));
} else if (IkeVersion == 2) {
DEBUG ((DEBUG_INFO, "\n****Current state is %a\n", mIkev2StateStr[Previous]));
- }
+ }
} else {
if (IkeVersion == 1) {
DEBUG ((DEBUG_INFO, "\n****Change state from %a to %a\n", mIkev1StateStr[Previous], mIkev1StateStr[Current]));
} else {
DEBUG ((DEBUG_INFO, "\n****Change state from %a to %a\n", mIkev2StateStr[Previous], mIkev2StateStr[Current]));
- }
+ }
}
}
@@ -223,7 +217,7 @@ IpSecDumpPacket (
case IKE_XCG_TYPE_QM:
TypeStr = mExchangeStr[2];
break;
-
+
case IKE_XCG_TYPE_SA_INIT:
TypeStr = mExchangeStr[3];
break;
@@ -239,7 +233,7 @@ IpSecDumpPacket (
case IKE_XCG_TYPE_INFO2:
TypeStr = mExchangeStr[6];
break;
-
+
default:
TypeStr = mExchangeStr[7];
break;
@@ -275,7 +269,7 @@ IpSecDumpPacket (
@param[in] IkePayload Point to payload to be printed.
@param[in] IkeVersion The specified version of IKE.
-
+
**/
VOID
IpSecDumpPayload (