diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2015-11-17 10:13:21 +0000 |
---|---|---|
committer | niruiyu <niruiyu@Edk2> | 2015-11-17 10:13:21 +0000 |
commit | cc4812f63e3f3d906ce0998eb429f891c2748b56 (patch) | |
tree | 2f211ed0a478600334af37c4c4fee658ebd3e841 | |
parent | dc477dd27d993b83f5e5a870d08b3cb720ca4821 (diff) | |
download | edk2-platforms-cc4812f63e3f3d906ce0998eb429f891c2748b56.tar.xz |
MdeModulePkg: Use UefiSpec.h defined macro to replace L"xxx" string
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Sunny Wang <sunnywang@hpe.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18861 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Universal/BdsDxe/BdsEntry.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/MdeModulePkg/Universal/BdsDxe/BdsEntry.c b/MdeModulePkg/Universal/BdsDxe/BdsEntry.c index c8898925e6..4154d41372 100644 --- a/MdeModulePkg/Universal/BdsDxe/BdsEntry.c +++ b/MdeModulePkg/Universal/BdsDxe/BdsEntry.c @@ -672,7 +672,7 @@ BdsFormalizeOSIndicationVariable ( //
OsIndicationSupport = EFI_OS_INDICATIONS_BOOT_TO_FW_UI;
Status = gRT->SetVariable (
- L"OsIndicationsSupported",
+ EFI_OS_INDICATIONS_SUPPORT_VARIABLE_NAME,
&gEfiGlobalVariableGuid,
EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,
sizeof(UINT64),
@@ -694,7 +694,7 @@ BdsFormalizeOSIndicationVariable ( Attributes = 0;
DataSize = sizeof(UINT64);
Status = gRT->GetVariable (
- L"OsIndications",
+ EFI_OS_INDICATIONS_VARIABLE_NAME,
&gEfiGlobalVariableGuid,
&Attributes,
&DataSize,
@@ -711,7 +711,7 @@ BdsFormalizeOSIndicationVariable ( DEBUG ((EFI_D_ERROR, "[Bds] Unformalized OsIndications variable exists. Delete it\n"));
Status = gRT->SetVariable (
- L"OsIndications",
+ EFI_OS_INDICATIONS_VARIABLE_NAME,
&gEfiGlobalVariableGuid,
0,
0,
@@ -737,9 +737,9 @@ BdsFormalizeEfiGlobalVariable ( //
// Validate Console variable.
//
- BdsFormalizeConsoleVariable (L"ConIn");
- BdsFormalizeConsoleVariable (L"ConOut");
- BdsFormalizeConsoleVariable (L"ErrOut");
+ BdsFormalizeConsoleVariable (EFI_CON_IN_VARIABLE_NAME);
+ BdsFormalizeConsoleVariable (EFI_CON_OUT_VARIABLE_NAME);
+ BdsFormalizeConsoleVariable (EFI_ERR_OUT_VARIABLE_NAME);
//
// Validate OSIndication related variable.
@@ -1045,7 +1045,7 @@ BdsEntry ( //
DataSize = sizeof (UINT64);
Status = gRT->GetVariable (
- L"OsIndications",
+ EFI_OS_INDICATIONS_VARIABLE_NAME,
&gEfiGlobalVariableGuid,
NULL,
&DataSize,
@@ -1062,7 +1062,7 @@ BdsEntry ( if (BootFwUi) {
OsIndication &= ~((UINT64) EFI_OS_INDICATIONS_BOOT_TO_FW_UI);
Status = gRT->SetVariable (
- L"OsIndications",
+ EFI_OS_INDICATIONS_VARIABLE_NAME,
&gEfiGlobalVariableGuid,
EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE,
sizeof(UINT64),
|