diff options
author | Pierre Gondois <Pierre.Gondois@arm.com> | 2021-07-08 16:03:07 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-02-01 17:39:34 +0000 |
commit | 742dafd2ccb1b2c5d4bfd3a40afd1d0c20832f71 (patch) | |
tree | 98a12035eac531a6e9cbdf46cd1538066442ebd8 /DynamicTablesPkg/Include | |
parent | 103fa647d159e3d76be2634d2653c2d215dd0d46 (diff) | |
download | edk2-742dafd2ccb1b2c5d4bfd3a40afd1d0c20832f71.tar.gz |
DynamicTablesPkg: Print specifier macro for CM_OBJECT_ID
Add a macro that specifies the format for printing CM_OBJECT_ID.
This allows to print the CM_OBJECT_ID is a consistent way in the
output logs.
Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'DynamicTablesPkg/Include')
-rw-r--r-- | DynamicTablesPkg/Include/ConfigurationManagerObject.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/DynamicTablesPkg/Include/ConfigurationManagerObject.h b/DynamicTablesPkg/Include/ConfigurationManagerObject.h index 60d825a2b2..74ad25d5d9 100644 --- a/DynamicTablesPkg/Include/ConfigurationManagerObject.h +++ b/DynamicTablesPkg/Include/ConfigurationManagerObject.h @@ -1,6 +1,6 @@ /** @file
- Copyright (c) 2017 - 2019, ARM Limited. All rights reserved.
+ Copyright (c) 2017 - 2022, ARM Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
@@ -84,6 +84,11 @@ Object ID's in the ARM Namespace: */
typedef UINT32 CM_OBJECT_ID;
+//
+// Helper macro to format a CM_OBJECT_ID.
+//
+#define FMT_CM_OBJECT_ID "0x%lx"
+
/** A mask for Object ID
*/
#define OBJECT_ID_MASK 0xFF
|