summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-23 05:30:08 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-23 05:30:08 +0000
commit36fe40c2ea61a81b7f004886682e55fb2d5358be (patch)
tree561545cf3b4ddb433f1b2f8761c0da9450c74705 /MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c
parentd9e5c1fffb22d39dd52ef23febe40cd4e2ee0965 (diff)
downloadedk2-36fe40c2ea61a81b7f004886682e55fb2d5358be.tar.gz
1) Add BufToHexString, HexStringToBuf and IsHexDigit to BaseLib.
2) Remove the duplicated functions implementation from the modules that reference these APIs git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5283 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c')
-rw-r--r--MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c b/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c
index 15a55d794a..3f35ed9005 100644
--- a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c
+++ b/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c
@@ -1,6 +1,6 @@
/** @file
-Copyright (c) 2007, Intel Corporation
+Copyright (c) 2007 - 2008, 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
@@ -92,7 +92,7 @@ HexStringToBufPrivate (
//
// Find out how many hex characters the string has.
//
- for (Idx = 0, HexCnt = 0; R8_IsHexDigit (&Digit, Str[Idx]); Idx++, HexCnt++);
+ for (Idx = 0, HexCnt = 0; IsHexDigit (&Digit, Str[Idx]); Idx++, HexCnt++);
if (HexCnt == 0) {
*Len = 0;
@@ -115,7 +115,7 @@ HexStringToBufPrivate (
for (Idx = 0; Idx < HexCnt; Idx++) {
- R8_IsHexDigit (&Digit, Str[Idx]);
+ IsHexDigit (&Digit, Str[Idx]);
//
// For odd charaters, write the lower nibble for each buffer byte,
@@ -765,7 +765,7 @@ GetValueOfNumber (
goto Exit;
}
- Status = R8_HexStringToBuf (Buf, &Length, Str, NULL);
+ Status = HexStringToBuf (Buf, &Length, Str, NULL);
if (EFI_ERROR (Status)) {
goto Exit;
}
@@ -1607,7 +1607,7 @@ HiiBlockToConfig (
goto Exit;
}
- Status = R8_BufToHexString (ValueStr, &Length, Value, Width);
+ Status = BufToHexString (ValueStr, &Length, Value, Width);
ASSERT_EFI_ERROR (Status);
SafeFreePool (Value);
Value = NULL;
@@ -2114,3 +2114,4 @@ Exit:
}
+