public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v3 0/8] ShellPkg/AcpiView: Refactor Error Logging
@ 2020-07-14 17:45 Tomas Pilar (tpilar)
  2020-07-14 17:45 ` [PATCH v3 1/8] ShellPkg/AcpiView: Extract configuration struct Tomas Pilar (tpilar)
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Tomas Pilar (tpilar) @ 2020-07-14 17:45 UTC (permalink / raw)
  To: devel; +Cc: nd, Sami.Mujawar

This patch series refactors the error logging in the AcpiView
functionality to a newly created logging facility.

The new error logging facility in AcpiViewLog.[ch] contains
helper functions to log messages of various types and severities,
enumerations of known error types as well as common abstractions
for outputting the log.

This allows for modularity when determining how the output
should be delivered to the user as well as significantly reduced
code footprint of the logging mechanism in the core AcpiView code.

---
Can be seen also on github:
https://github.com/tpilar/edk2/tree/acpiview-error-logging-v3

v3: Tidy formatting. Fix off-by-one-errors in asserts.
v2: Tidy formatting. Remove inline functions.
    Remove assignments in local variable declarations.
    Return macro to access 2D array items.

 .../UefiShellAcpiViewCommandLib/AcpiParser.c  | 531 ++++--------------
 .../UefiShellAcpiViewCommandLib/AcpiParser.h  | 173 +-----
 .../AcpiTableParser.c                         |  56 +-
 .../AcpiTableParser.h                         |   2 +-
 .../UefiShellAcpiViewCommandLib/AcpiView.c    | 226 +++-----
 .../UefiShellAcpiViewCommandLib/AcpiView.h    |  36 --
 .../AcpiViewConfig.c                          | 180 +-----
 .../AcpiViewConfig.h                          | 138 +----
 .../UefiShellAcpiViewCommandLib/AcpiViewLog.c | 376 +++++++++++++
 .../UefiShellAcpiViewCommandLib/AcpiViewLog.h | 213 +++++++
 .../Arm/SbbrValidator.c                       |  65 +--
 .../FieldFormatHelper.h                       | 164 ++++++
 .../Parsers/Dbg2/Dbg2Parser.c                 | 120 ++--
 .../Parsers/Fadt/FadtParser.c                 |  55 +-
 .../Parsers/Gtdt/GtdtParser.c                 |  80 +--
 .../Parsers/Iort/IortParser.c                 | 198 +++----
 .../Parsers/Madt/MadtParser.c                 | 101 ++--
 .../Parsers/Mcfg/McfgParser.c                 |  11 +-
 .../Parsers/Pptt/PpttParser.c                 | 166 ++----
 .../Parsers/Rsdp/RsdpParser.c                 |  38 +-
 .../Parsers/Slit/SlitParser.c                 | 125 ++---
 .../Parsers/Spcr/SpcrParser.c                 |  23 +-
 .../Parsers/Srat/SratParser.c                 | 189 ++-----
 .../Parsers/Xsdt/XsdtParser.c                 |  97 +---
 .../UefiShellAcpiViewCommandLib.c             |  22 +-
 .../UefiShellAcpiViewCommandLib.inf           |   3 +
 26 files changed, 1373 insertions(+), 2015 deletions(-)
 create mode 100644 ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiViewLog.c
 create mode 100644 ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiViewLog.h
 create mode 100644 ShellPkg/Library/UefiShellAcpiViewCommandLib/FieldFormatHelper.h

-- 
2.24.1.windows.2



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-07-14 17:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-14 17:45 [PATCH v3 0/8] ShellPkg/AcpiView: Refactor Error Logging Tomas Pilar (tpilar)
2020-07-14 17:45 ` [PATCH v3 1/8] ShellPkg/AcpiView: Extract configuration struct Tomas Pilar (tpilar)
2020-07-14 17:45 ` [PATCH v3 2/8] ShellPkg/AcpiView: Declutter error counters Tomas Pilar (tpilar)
2020-07-14 17:45 ` [PATCH v3 3/8] ShellPkg/AcpiView: Modify error message Tomas Pilar (tpilar)
2020-07-14 17:45 ` [PATCH v3 4/8] ShellPkg/AcpiView: Create a logging facility Tomas Pilar (tpilar)
2020-07-14 17:45 ` [PATCH v3 5/8] ShellPkg/AcpiView: Refactor PrintFieldName Tomas Pilar (tpilar)
2020-07-14 17:45 ` [PATCH v3 6/8] ShellPkg/AcpiView: Refactor dump helpers Tomas Pilar (tpilar)
2020-07-14 17:45 ` [PATCH v3 7/8] ShellPkg/AcpiView: Refactor AcpiView Tomas Pilar (tpilar)
2020-07-14 17:45 ` [PATCH v3 8/8] ShellPkg/AcpiView: Refactor table parsers Tomas Pilar (tpilar)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox