From 020891f1735bdc019602d66083edec88060e4bd4 Mon Sep 17 00:00:00 2001 From: Pierre Gondois Date: Mon, 10 Oct 2022 11:20:45 +0200 Subject: DynamicTablesPkg: Use correct print formatter In C, the 'long long' types are 64-bits. The 'll' printf length specifier should be used to pring these values. Just '%x' allows to print values that are on 16-bits or more. Use that instead. Signed-off-by: Pierre Gondois Reviewed-by: Sami Mujawar --- .../TableHelperLib/ConfigurationManagerObjectParser.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'DynamicTablesPkg') diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c index 08b4f60dfb..13e6c0e321 100644 --- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c +++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c @@ -1,7 +1,7 @@ /** @file Configuration Manager Object parser. - Copyright (c) 2021, ARM Limited. All rights reserved.
+ Copyright (c) 2021 - 2022, ARM Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -384,12 +384,12 @@ STATIC CONST CM_OBJ_PARSER AcpiGenericAddressParser[] = { /** A parser for EArmObjLpiInfo. */ STATIC CONST CM_OBJ_PARSER CmArmLpiInfoParser[] = { - { "MinResidency", 4, "0x%llx", NULL }, - { "WorstCaseWakeLatency", 4, "0x%llx", NULL }, - { "Flags", 4, "0x%llx", NULL }, - { "ArchFlags", 4, "0x%llx", NULL }, - { "ResCntFreq", 4, "0x%llx", NULL }, - { "EnableParentState", 4, "0x%llx", NULL }, + { "MinResidency", 4, "0x%x", NULL }, + { "WorstCaseWakeLatency", 4, "0x%x", NULL }, + { "Flags", 4, "0x%x", NULL }, + { "ArchFlags", 4, "0x%x", NULL }, + { "ResCntFreq", 4, "0x%x", NULL }, + { "EnableParentState", 4, "0x%x", NULL }, { "IsInteger", 1, "%d", NULL }, { "IntegerEntryMethod", 8, "0x%llx", NULL }, { "RegisterEntryMethod", sizeof (EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE), -- cgit v1.2.3