diff options
author | Pierre Gondois <pierre.gondois@arm.com> | 2022-10-10 11:20:46 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-10-31 12:32:32 +0000 |
commit | 48c6e7dbcd2acf688e78da1ec12952e6a4d5e987 (patch) | |
tree | 32b0d405dcd3a0c8157dc0a420e890cc452abb3e /DynamicTablesPkg | |
parent | 020891f1735bdc019602d66083edec88060e4bd4 (diff) | |
download | edk2-48c6e7dbcd2acf688e78da1ec12952e6a4d5e987.tar.gz edk2-48c6e7dbcd2acf688e78da1ec12952e6a4d5e987.tar.bz2 edk2-48c6e7dbcd2acf688e78da1ec12952e6a4d5e987.zip |
DynamicTablesPkg: Add PrintString to CmObjParser
Add a PrintString to print strings in the CmObjParser.
String must be NULL terminated and no buffer overrun check
is done by this function.
Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'DynamicTablesPkg')
-rw-r--r-- | DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c index 13e6c0e321..b46f19693b 100644 --- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c +++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c @@ -19,6 +19,14 @@ PrintOemId ( UINT8 *Ptr
);
+STATIC
+VOID
+EFIAPI
+PrintString (
+ CONST CHAR8 *Format,
+ UINT8 *Ptr
+ );
+
/** A parser for EArmObjBootArchInfo.
*/
STATIC CONST CM_OBJ_PARSER CmArmBootArchInfoParser[] = {
@@ -646,6 +654,24 @@ PrintOemId ( ));
}
+/** Print string.
+
+ The string must be NULL terminated.
+
+ @param [in] Format Format to print the Ptr.
+ @param [in] Ptr Pointer to the string.
+**/
+STATIC
+VOID
+EFIAPI
+PrintString (
+ CONST CHAR8 *Format,
+ UINT8 *Ptr
+ )
+{
+ DEBUG ((DEBUG_ERROR, "%a", Ptr));
+}
+
/** Print fields of the objects.
@param [in] Data Pointer to the object to print.
|