From patchwork Thu Sep 6 14:19:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 967023 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 425jQV4KQhz9rxp; Fri, 7 Sep 2018 00:20:18 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1fxv8o-0001C9-UB; Thu, 06 Sep 2018 14:20:14 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1fxv8g-000150-RE for fwts-devel@lists.ubuntu.com; Thu, 06 Sep 2018 14:20:06 +0000 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fxv8g-0006OO-Br; Thu, 06 Sep 2018 14:20:06 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 10/12] acpi/method: use inttype.h print format size specifiers Date: Thu, 6 Sep 2018 15:19:59 +0100 Message-Id: <20180906142001.28381-11-colin.king@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180906142001.28381-1-colin.king@canonical.com> References: <20180906142001.28381-1-colin.king@canonical.com> MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" From: Colin Ian King Use the correct size specifiers for the specific types. Signed-off-by: Colin Ian King Acked-by: Alex Hung Acked-by: Ivan Hu --- src/acpi/method/method.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c index c42ec02d..7d5311e0 100644 --- a/src/acpi/method/method.c +++ b/src/acpi/method/method.c @@ -2400,7 +2400,7 @@ static void method_test_PSS_return( */ if (max_freq_valid && max_freq < 1000) { fwts_failed(fw, LOG_LEVEL_LOW, "Method_PSSSubPackageLowFreq", - "Maximum CPU frequency is %dHz and this is low for " + "Maximum CPU frequency is %" PRIu32 "Hz and this is low for " "a modern processor. This may indicate the _PSS " "P-States are incorrect\n", max_freq); fwts_advice(fw, @@ -5493,7 +5493,7 @@ static void method_test_BCL_return( "Brightness level %" PRIu64 " (index %" PRIu32 ") is greater " "than brightness level %" PRIu64 - " (index %d" PRIu32 "), should " + " (index %" PRIu32 "), should " "be in ascending order.", (uint64_t)obj->Package.Elements[i].Integer.Value, i, (uint64_t)obj->Package.Elements[i+1].Integer.Value, i+1);