11 маÑÑа 2020 г., в 16:14, Laszlo Ersek < ler...@redhat.com> напиÑал(а):
On 03/11/20 14:09, Vitaly Cheptsov wrote:Hi everyone,
So, I believe that by now we mostly agreed to let the original proposition land as a short-term solution. We end up with:
1. A PCD condition within SAFE_STRING_COSTRAINT_CHECK macro. 2. Make this condition evaluate to TRUE by default (i.e. ASSERT). 3. Update documentation for BaseLib functions to include the information about this behaviour.
The only thing in question is whether this should be a separate PCD or an extra bit in PcdDebugPropertyMask. I believe that we almost agreed on two things:
1. Adding an extra bit to PcdDebugPropertyMask is cleaner. 2. Extending DebugLib interface with a new function is not a good idea.
Therefore I suggest:
1.Add #define DEBUG_PROPERTY_ASSERT_CONSTRAINT_ENABLED 0x40. 2. Create header-only macros to replace functions like DebugAssertEnabled. We can then use these macros in new code and deprecate the original functions. 3. Enable DEBUG_PROPERTY_ASSERT_CONSTRAINT_ENABLED bit in MdePkg by default.
I will submit the new version of the patch soon unless there is an immediate opposing opinion.
Not sure about any particular deprecation timeline, but to me the abovecertainly sounds worth submitting for review.(NB I don't plan to review in detail -- I just meant to comment on thedesign, since I was asked to.)Thanks!Laszlo
_._,_._,_
Groups.io Links:
You receive all messages sent to this group.
View/Reply Online (#55961) |
|
Mute This Topic
| New Topic
Your Subscription |
Contact Group Owner |
Unsubscribe
[arch...@mail-archive.com]
_._,_._,_
|
constraint-r3.diff
Description: Binary data
signature.asc
Description: Message signed with OpenPGP