From 00f6c6cf9fd7c802b67a1b38209a08c94e7e9616 Mon Sep 17 00:00:00 2001 From: fanwang2 Date: Tue, 11 Aug 2015 01:11:54 +0000 Subject: [PATCH] MdeModulePkg: Change the macro name to fit coding style Change a macro name to fit EDK2 naming conventions: Use all capital letters for #define. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: fanwang2 Reviewed-by: Jiaxin Wu Reviewed-by: Qiu Shumin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18200 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c | 2 +- MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c index 621fbc00e4..ebd9f5b40d 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c @@ -820,7 +820,7 @@ IScsiGetTcpConnDevicePath ( // do not exist. // In new version of IPv4_DEVICE_PATH, structcure length is 27. // - if (DevicePathNodeLength (&DPathNode->Ipv4) == IPv4_NODE_LEN_NEW_VERSIONS) { + if (DevicePathNodeLength (&DPathNode->Ipv4) == IP4_NODE_LEN_NEW_VERSIONS) { IP4_COPY_ADDRESS ( &DPathNode->Ipv4.GatewayIpAddress, diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.h b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.h index 0bb7da070d..8a95493dcd 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.h +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.h @@ -22,7 +22,7 @@ typedef struct _ISCSI_SESSION_CONFIG_DATA ISCSI_SESSION_CONFIG_DATA; /// /// IPv4 Device Path Node Length /// -#define IPv4_NODE_LEN_NEW_VERSIONS 27 +#define IP4_NODE_LEN_NEW_VERSIONS 27 #pragma pack(1) typedef struct { -- 2.39.2