Add a new API DebugVPrint to all the instances of DebugLib. This API is added to provide a function who want to implement special debug function with '...' parameter. Add a PEIM to install gEdkiiDebugPpiGuid, and implement a PEI debug library instance base on it. All PEIMs except pei core type can use the PeiDebugLibDebugPpi to reduce its image size.
V2: Remove redundant code in DebugPrint. Fix some coding sytle issues. Remove some unenforced descirption in the comments of DebugVPrint. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhichao Gao <zhichao....@intel.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Jordan Justen <jordan.l.jus...@intel.com> Cc: Laszlo Ersek <ler...@redhat.com> Cc: Chasel Chiu <chasel.c...@intel.com> Cc: Nate DeSimone <nathaniel.l.desim...@intel.com> Cc: Star Zeng <star.z...@intel.com> Cc: Nate DeSimone <nathaniel.l.desim...@intel.com> Cc: Jian J Wang <jian.j.w...@intel.com> Cc: Hao Wu <hao.a...@intel.com> Cc: Ray Ni <ray...@intel.com> Cc: Liming Gao <liming....@intel.com> Cc: Sean Brogan <sean.bro...@microsoft.com> Cc: Michael Turner <michael.tur...@microsoft.com> Cc: Bret Barkelew <bret.barke...@microsoft.com> Liming Gao (1): MdeModulePkg/PeiDebugLibDebugPpi: Add PEI debug lib Zhichao Gao (16): MdePkg/DebugLib.h: Add a new api DebugVPrint for DebugLib MdePkg/BaseDebugLibNull: Add a new api DebugVPrint for DebugLib MdePkg/BaseDebugLibSerialPort: Add a new api DebugVPrint MdePkg/UefidebugLibConOut: Add a new api DebugVPrint MdePkg/UefiDebugLibStdErr: Add a new api DebugVPrint MdePkg/DxeRuntimeDebugLibSerialPort: Add a new api DebugVPrint MdePkg/UefiDebuglibDebugPortProtocol: Add a new api DebugVPrint ArmPkg/SemiHostingDebugLib: Add a new api DebugVPrint OvmfPkg/PlatformDebugLibIoPort: Add a new api DebugVPrint IntelFsp2Pkg/BaseFspDebugLibSerialPort: Add a new api DebugVPrint IntelFspPkg/BaseFspDebugLibSerialPort: Add a new api DebugVPrint IntelFramworkModulePkg/PeiDxeDebugLibReportStatusCode: Add a new api MdeModulePkg/PeiDxeDebugLibReportStatusCode: Add a new api MdeModulePkg: Add definitions for EDKII DEBUG PPI MdeModulePkg: Add a PEIM to install Debug PPI MdeModulePkg: Add PEIM and lib to dsc file ArmPkg/Library/SemiHostingDebugLib/DebugLib.c | 38 ++- .../PeiDxeDebugLibReportStatusCode/DebugLib.c | 40 ++- .../Library/BaseFspDebugLibSerialPort/DebugLib.c | 42 ++- .../Library/BaseFspDebugLibSerialPort/DebugLib.c | 42 ++- MdeModulePkg/Include/Ppi/Debug.h | 90 ++++++ .../Library/PeiDebugLibDebugPpi/DebugLib.c | 302 +++++++++++++++++++++ .../PeiDebugLibDebugPpi/PeiDebugLibDebugPpi.inf | 55 ++++ .../PeiDxeDebugLibReportStatusCode/DebugLib.c | 38 ++- MdeModulePkg/MdeModulePkg.dec | 3 + MdeModulePkg/MdeModulePkg.dsc | 3 + .../Universal/DebugServicePei/DebugService.c | 68 +++++ .../Universal/DebugServicePei/DebugService.h | 64 +++++ .../Universal/DebugServicePei/DebugServicePei.c | 54 ++++ .../Universal/DebugServicePei/DebugServicePei.inf | 51 ++++ .../Universal/DebugServicePei/DebugServicePei.uni | 20 ++ MdePkg/Include/Library/DebugLib.h | 33 ++- MdePkg/Library/BaseDebugLibNull/DebugLib.c | 28 +- MdePkg/Library/BaseDebugLibSerialPort/DebugLib.c | 39 ++- .../DxeRuntimeDebugLibSerialPort/DebugLib.c | 40 ++- MdePkg/Library/UefiDebugLibConOut/DebugLib.c | 38 ++- .../UefiDebugLibDebugPortProtocol/DebugLib.c | 39 ++- MdePkg/Library/UefiDebugLibStdErr/DebugLib.c | 39 ++- OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c | 38 ++- 23 files changed, 1145 insertions(+), 59 deletions(-) create mode 100644 MdeModulePkg/Include/Ppi/Debug.h create mode 100644 MdeModulePkg/Library/PeiDebugLibDebugPpi/DebugLib.c create mode 100644 MdeModulePkg/Library/PeiDebugLibDebugPpi/PeiDebugLibDebugPpi.inf create mode 100644 MdeModulePkg/Universal/DebugServicePei/DebugService.c create mode 100644 MdeModulePkg/Universal/DebugServicePei/DebugService.h create mode 100644 MdeModulePkg/Universal/DebugServicePei/DebugServicePei.c create mode 100644 MdeModulePkg/Universal/DebugServicePei/DebugServicePei.inf create mode 100644 MdeModulePkg/Universal/DebugServicePei/DebugServicePei.uni -- 2.16.2.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel