diff options
author | Jeshua Smith <jeshuas@nvidia.com> | 2023-10-06 16:28:06 +0000 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-10-23 17:05:02 +0000 |
commit | 575bd4f55c0aea6096579a649a018cfd183546fc (patch) | |
tree | c45a1a75fc9b4018f43e75a707f8b83f945dd3da /MdePkg | |
parent | c591395f4ab5359c14e783481473685cf432fe75 (diff) | |
download | edk2-575bd4f55c0aea6096579a649a018cfd183546fc.zip edk2-575bd4f55c0aea6096579a649a018cfd183546fc.tar.gz edk2-575bd4f55c0aea6096579a649a018cfd183546fc.tar.bz2 |
DynamicTablesPkg/TableHelperLib: Fix and improve text handling
This fixes two bugs and adds some enhancements to the handling of
characters and strings in objects being printed by the CM ObjectParser.
Bug fixes:
1. PrintOemID() currently attempts to print characters with "%C",
but the correct syntax is (lowercase) "%c". This bug results in
"CCCCCC" being printed instead of the actual ASCII characters.
2. PrintString() is being passed a pointer to data in objects, but in
some cases this data is the actual string to print and other cases
it is a pointer to the string to print. This adds a PrintStringPtr
function and uses the correct functions depending on the situation.
Enhancements:
1. Some objects contain ASCII characters, which are currently printed
as their hex values. This adds functions to print out ASCII
character fields as text rather than hex, and uses those functions in
several cases where the object data is defined to be ASCII.
2. The PrintOemID() function is replaced with the new identical but more
generecically-named PrintChar6() function.
Signed-off-by: Jeshua Smith <jeshuas@nvidia.com>
Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'MdePkg')
0 files changed, 0 insertions, 0 deletions