diff options
author | Dandan Bi <dandan.bi@intel.com> | 2016-12-19 11:11:15 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-12-20 10:51:19 +0800 |
commit | 789b86acfb401f263e86a15c73fd2879c3a70413 (patch) | |
tree | a51ee25b6edef32fc35cc36ac23c131dbddc04ed | |
parent | 3a9ac06921edc410e1e65bb0297c454989fb704a (diff) | |
download | edk2-789b86acfb401f263e86a15c73fd2879c3a70413.tar.gz edk2-789b86acfb401f263e86a15c73fd2879c3a70413.tar.bz2 edk2-789b86acfb401f263e86a15c73fd2879c3a70413.zip |
MdeModulePkg/EbcDxe: Make variable name follow rules
For variable name, it should contain lower case characters.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
-rw-r--r-- | MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c | 8 | ||||
-rw-r--r-- | MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCommon.h | 2 | ||||
-rw-r--r-- | MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSymbol.c | 18 |
3 files changed, 14 insertions, 14 deletions
diff --git a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c index 9c5707ecf3..ba62c6ac27 100644 --- a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c +++ b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c @@ -166,7 +166,7 @@ DebuggerDisplaySymbolAccrodingToAddress ( // EDBPrint (L" 0xFFFFFFFF00000000 ( F) TestMain\n");
EDBPrint (
L" 0x%016lx %s %a\n",
- (UINT64)Entry->RVA + Object->BaseAddress,
+ (UINT64)Entry->Rva + Object->BaseAddress,
EdbSymbolTypeToStr (Entry->Type),
Entry->Name
);
@@ -176,7 +176,7 @@ DebuggerDisplaySymbolAccrodingToAddress ( // EDBPrint (L" 0xFFFF0000 ( F) TestMain\n");
EDBPrint (
L" 0x%08x %s %a\n",
- Entry->RVA + Object->BaseAddress,
+ Entry->Rva + Object->BaseAddress,
EdbSymbolTypeToStr (Entry->Type),
Entry->Name
);
@@ -273,7 +273,7 @@ DebuggerDisplaySymbolAccrodingToName ( if (sizeof(UINTN) == sizeof(UINT64)) {
EDBPrint (
L" 0x%016lx %s %a (%a)\n",
- (UINT64)Entry->RVA + Object->BaseAddress,
+ (UINT64)Entry->Rva + Object->BaseAddress,
EdbSymbolTypeToStr (Entry->Type),
Entry->Name,
Entry->ObjName
@@ -281,7 +281,7 @@ DebuggerDisplaySymbolAccrodingToName ( } else {
EDBPrint (
L" 0x%08x %s %a (%a)\n",
- Entry->RVA + Object->BaseAddress,
+ Entry->Rva + Object->BaseAddress,
EdbSymbolTypeToStr (Entry->Type),
Entry->Name,
Entry->ObjName
diff --git a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCommon.h b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCommon.h index 2a54be1605..d452b2bb2e 100644 --- a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCommon.h +++ b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCommon.h @@ -90,7 +90,7 @@ typedef enum { typedef struct {
CHAR8 Name[EFI_DEBUGGER_SYMBOL_NAME_MAX];
- UINTN RVA;
+ UINTN Rva;
EFI_DEBUGGER_SYMBOL_TYPE Type;
CHAR8 ObjName[EFI_DEBUGGER_SYMBOL_NAME_MAX];
CHAR8 *CodBuffer;
diff --git a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSymbol.c b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSymbol.c index e6a677d764..4e640ea0e6 100644 --- a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSymbol.c +++ b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSymbol.c @@ -67,7 +67,7 @@ EdbLoadSymbolSingleEntry ( if (ObjName != NULL) {
AsciiStrnCpyS (Entry->ObjName, sizeof(Entry->ObjName), ObjName, sizeof(Entry->ObjName) - 1);
}
- Entry->RVA = Address % EFI_DEBUGGER_DEFAULT_LINK_IMAGEBASE;
+ Entry->Rva = Address % EFI_DEBUGGER_DEFAULT_LINK_IMAGEBASE;
Entry->Type = Type;
//
@@ -515,16 +515,16 @@ EbdFindSymbolAddress ( //
Entry = Object->Entry;
for (SubIndex = 0; SubIndex < Object->EntryCount; SubIndex++, Entry++) {
- if (Address != Entry->RVA + Object->BaseAddress) {
+ if (Address != Entry->Rva + Object->BaseAddress) {
//
// Check for nearest address
//
- if (Address > Entry->RVA + Object->BaseAddress) {
+ if (Address > Entry->Rva + Object->BaseAddress) {
//
// Record it if Current RVA < Address
//
- if (CandidateLowerAddress < Entry->RVA + Object->BaseAddress) {
- CandidateLowerAddress = Entry->RVA + Object->BaseAddress;
+ if (CandidateLowerAddress < Entry->Rva + Object->BaseAddress) {
+ CandidateLowerAddress = Entry->Rva + Object->BaseAddress;
LowEntry = Entry;
LowObject = Object;
}
@@ -532,8 +532,8 @@ EbdFindSymbolAddress ( //
// Record it if Current RVA > Address
//
- if (CandidateUpperAddress > Entry->RVA + Object->BaseAddress) {
- CandidateUpperAddress = Entry->RVA + Object->BaseAddress;
+ if (CandidateUpperAddress > Entry->Rva + Object->BaseAddress) {
+ CandidateUpperAddress = Entry->Rva + Object->BaseAddress;
UpperEntry = Entry;
UpperObject = Object;
}
@@ -1712,7 +1712,7 @@ FindSymbolStr ( //
// if Address match, return Name
//
- if (Address == (Entry[EntryIndex].RVA + Object[ObjectIndex].BaseAddress)) {
+ if (Address == (Entry[EntryIndex].Rva + Object[ObjectIndex].BaseAddress)) {
return Entry[EntryIndex].Name;
}
}
@@ -2219,7 +2219,7 @@ Symboltoi ( //
// record Address
//
- *Address = (Entry[EntryIndex].RVA + Object[ObjectIndex].BaseAddress);
+ *Address = (Entry[EntryIndex].Rva + Object[ObjectIndex].BaseAddress);
}
}
}
|