[edk2]Shoulnd't vars Boot#### be UpperCase?

Subject: [edk2]Shoulnd't vars Boot#### be UpperCase?

From: =?UTF-8?B?RG1pdHJpeSBTa29yb2R1bW92?= <dskr99@mail.ru>

To: edk2-devel@lists.sourceforge.net

Date: 2012-10-24 03:51:49

Hi,

seems that in edk2 implementation of efi there is a small violation of EFI-spec. The UEFI_2_3_1_Errata_C_final.pdf, section "3.1.1 Boot Manager Programming" says

"Each load option entry resides in a Boot#### variable or a Driver#### variable where the #### is replaced by a unique option number in printable hexadecimal representation using the digits 09, and the upper case versions of the characters AF (0000FFFF)."

But in most places of EDK2 the characters are in lower-case. For example,
IntelFrameworkModulePkg\Library\GenericBdsLib\BdsMisc.c

BdsLibRegisterNewOption(..)
{
..
  UnicodeSPrint (OptionName, sizeof (OptionName), L"Boot%04x", TempOptionPtr[Index]);
 ..
  Status = gRT->SetVariable (...)
...
}

Seems that there and in other places should be not "Boot%04x", but "Boot%04X" ('X' in uppercase). But need to say that I don't see any issues with that so far..

Dmitry