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>
This commit is contained in:
Pierre Gondois 2021-07-08 16:03:07 +01:00 committed by mergify[bot]
parent 103fa647d1
commit 742dafd2cc
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
/** @file /** @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 SPDX-License-Identifier: BSD-2-Clause-Patent
@ -84,6 +84,11 @@ Object ID's in the ARM Namespace:
*/ */
typedef UINT32 CM_OBJECT_ID; 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 /** A mask for Object ID
*/ */
#define OBJECT_ID_MASK 0xFF #define OBJECT_ID_MASK 0xFF