From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: devel@edk2.groups.io, zhichao.gao@intel.com, "Wu,
Hao A" <hao.a.wu@intel.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>,
Michael Turner <Michael.Turner@microsoft.com>,
"Gao, Liming" <liming.gao@intel.com>,
"Zeng, Star" <star.zeng@intel.com>,
"Wang, Jian J" <jian.j.wang@intel.com>,
stephano <stephano.cetola@linux.intel.com>
Subject: Re: [edk2-devel] [edk2] [PATCH] MdeModulePkg/CapsulePei: Update the debug code to print 64bit data
Date: Thu, 11 Apr 2019 12:33:28 +0200 [thread overview]
Message-ID: <76ebf3c6-0a37-5a3a-2215-60f1f0dccf15@redhat.com> (raw)
In-Reply-To: <3CE959C139B4C44DBEA1810E3AA6F9000B7C17F2@SHSMSX101.ccr.corp.intel.com>
Hi Zhichao,
This is not a technical comment related to your patch.
I understand the migration from lists.01.org to edk2.groups.io was in
part motivated to help developpers having a restricted email setup to
easily use a mailing list. I see you top posting your replies so I
wonder if groups.io is really helpful to you.
Are you missing other features that would make your list email workflow
easier?
Thanks,
Phil.
On 4/11/19 11:33 AM, Gao, Zhichao wrote:
> Thanks for you advices.
>
> I would better to keep the 'UINTN' with '%x' because PEIM is compiled as 32 bit object. And lots of PEIMs keep this combine.
>
> Thanks,
> Zhichao
>
>> -----Original Message-----
>> From: Wu, Hao A
>> Sent: Thursday, April 11, 2019 4:12 PM
>> To: Gao, Zhichao <zhichao.gao@intel.com>; Philippe Mathieu-Daudé
>> <philmd@redhat.com>; devel@edk2.groups.io
>> Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>; Michael Turner
>> <Michael.Turner@microsoft.com>; Gao, Liming <liming.gao@intel.com>;
>> Zeng, Star <star.zeng@intel.com>; Wang, Jian J <jian.j.wang@intel.com>
>> Subject: RE: [edk2] [PATCH] MdeModulePkg/CapsulePei: Update the debug
>> code to print 64bit data
>>
>>> -----Original Message-----
>>> From: Gao, Zhichao
>>> Sent: Thursday, April 11, 2019 3:47 PM
>>> To: Philippe Mathieu-Daudé; devel@edk2.groups.io
>>> Cc: Bret Barkelew; Michael Turner; Gao, Liming; Zeng, Star; Wu, Hao A;
>>> Wang, Jian J
>>> Subject: RE: [edk2] [PATCH] MdeModulePkg/CapsulePei: Update the
>> debug
>>> code to print 64bit data
>>>
>>> Sorry for missing this email.
>>>
>>> While I change the code, it couldn't pass the Patchcher.py because of
>>> the 'EFI_D_" version MACRO. So I change all the debug message in this
>> driver.
>>> Maybe that is a redundant work.
>>
>> Hello Zhichao,
>>
>> For this case, you can work out a first patch to replace all the macros starting
>> with 'EFI_D_' with 'DEBUG_'. And a second patch to address the real issue.
>>
>>>
>>> Thanks,
>>> Zhichao
>>>
>>>> -----Original Message-----
>>>> From: Philippe Mathieu-Daudé [mailto:philmd@redhat.com]
>>>> Sent: Tuesday, April 2, 2019 11:36 PM
>>>> To: Gao, Zhichao <zhichao.gao@intel.com>; edk2-devel@lists.01.org
>>>> Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>; Michael Turner
>>>> <Michael.Turner@microsoft.com>; Gao, Liming <liming.gao@intel.com>;
>>>> Zeng, Star <star.zeng@intel.com>
>>>> Subject: Re: [edk2] [PATCH] MdeModulePkg/CapsulePei: Update the
>>> debug
>>>> code to print 64bit data
>>>>
>>>> Hi Bret,
>>>>
>>>> On 4/2/19 7:50 AM, Zhichao Gao wrote:
>>>>> From: Bret Barkelew <Bret.Barkelew@microsoft.com>
>>>>>
>>>>> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1677
>>>>>
>>>>> For some pointer and UINT64 data, the debug code print with '%x'.
>>>>> Which would loss the upper 32bit data. So update '%x' to '%lx'
>>>>> for these data.
>>>>
>>>> Some are UINTN. Per Laszlo answer on this thread:
>>>> https://lists.01.org/pipermail/edk2-devel/2016-September/002093.html
>>>> for those, casting and changing format is the accepted way.
>>
>> After a skim of the patch, I think there seems only 2 cases that are handled in
>> this patch:
>>
>> 1. UINT64
>> For this one, the change in this patch looks good to me.
>>
>> 2. Pointers
>> I think we can directly use '%p' for pointers.
>>
>> If I happen to miss other cases, please do follow the above link to handle
>> UINTN.
>>
>>
>> Best Regards,
>> Hao Wu
>>
>>>>
>>>> However this is a change,
>>>>
>>>>> Change the DEBUG PrintLevel from EFI_D_ version to DEBUG_ version.
>>>>> DEBUG_ version is recommended to use.
>>>>
>>>> and this is another change.
>>>>
>>>> Splitting this patch in 2 would make it more digestable.
[...]
next prev parent reply other threads:[~2019-04-11 10:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-02 5:50 [PATCH] MdeModulePkg/CapsulePei: Update the debug code to print 64bit data Zhichao Gao
2019-04-02 15:35 ` Philippe Mathieu-Daudé
2019-04-11 7:47 ` [edk2] " Gao, Zhichao
2019-04-11 8:12 ` Wu, Hao A
2019-04-11 9:33 ` Gao, Zhichao
2019-04-11 10:33 ` Philippe Mathieu-Daudé [this message]
2019-04-17 0:26 ` [edk2-devel] " Gao, Zhichao
2019-04-17 13:33 ` Laszlo Ersek
2019-04-18 0:16 ` Gao, Zhichao
2019-04-11 7:20 ` Gao, Zhichao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=76ebf3c6-0a37-5a3a-2215-60f1f0dccf15@redhat.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox