]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Include/Library/DebugLib.h
MdePkg/Include: Enhance DebugLib to support reproduce builds
authorMichael D Kinney <michael.d.kinney@intel.com>
Tue, 12 Oct 2021 23:42:28 +0000 (16:42 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 8 Nov 2021 18:01:35 +0000 (18:01 +0000)
commit48452993ad2f6b880f12f0e48512d86e8c5a22e9
tree5ad83d1b0c815b42735a47dda7e3d922f6b8d34b
parentb5d4a35d90771ec86ce9cf28727f471ee589fb78
MdePkg/Include: Enhance DebugLib to support reproduce builds

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3688

* Add DEBUG_LINE_NUMBER define to DebugLib.h that is
  by default mapped to __LINE__.  A build can define
  DEBUG_LINE_NUMBER to use a fixed value.
* Add DEBUG_EXPRESSION_STRING(Expression) macros to
  DebugLib.h that is by default mapped to #Expression.
  A build can define DEBUG_EXPRESSION_STRING_VALUE to
  set all expression strings to a fixed string value.

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Michael Kubacki <michael.kubacki@microsoft.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Tested-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
MdePkg/Include/Library/DebugLib.h