Ok, incorrect assumptions (that Print would follow the semantics of printf) on my behalf.

I think this bug can be closed. Thanks for the reply :)

//D

On 2015-05-14 23:28, Croxon, Nigel wrote:
I think the Capital "X" produces a long word, whereas the lowercase
"x" produces a short word.

-Nigel

-----Original Message-----
From: Julian Andres Klode [mailto:julian.kl...@gmail.com] On Behalf Of
Julian Andres Klode
Sent: Tuesday, May 12, 2015 10:32 AM
To: Croxon, Nigel; David Härdeman; 773...@bugs.debian.org
Subject: Re: Bug#773744: gnu-efi: Print format strings in hex are
somewhat misleading

Control: forwarded -1 Nigel Croxon <nigel.cro...@hp.com> (adding to To)

Nigel: What do you think of this?

On Mon, Dec 22, 2014 at 09:36:29PM +0100, David Härdeman wrote:
...
this sample EFI program:

        EFI_STATUS
        efi_main (EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) {
                UINT16 var = 0x1f;

                InitializeLib(ImageHandle, SystemTable);
                Print(L"var as 0x04hx: 0x%04hx\n", var);
                Print(L"var as 0x04hX: 0x%04hX\n", var);
                return EFI_SUCCESS;
        }

generates the following output:

        var as 0x04hx: 0x001F
        var as 0x04hX: 0x0000001F

which is not what one would expect...the expected output would have
been:

        var as 0x04hx: 0x001f
        var as 0x04hx: 0x001F

...


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to