From nobody Mon Dec 23 18:17:01 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1514516404965855.0103884960378; Thu, 28 Dec 2017 19:00:04 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 8125C22280C3A; Thu, 28 Dec 2017 18:55:06 -0800 (PST) Received: from mail-io0-x243.google.com (mail-io0-x243.google.com [IPv6:2607:f8b0:4001:c06::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 928ED208F79EE for ; Thu, 28 Dec 2017 18:55:04 -0800 (PST) Received: by mail-io0-x243.google.com with SMTP id f6so3708068ioh.8 for ; Thu, 28 Dec 2017 19:00:01 -0800 (PST) Received: from localhost.localdomain ([2601:249:502:61f3:25d4:215d:952f:4f3]) by smtp.gmail.com with ESMTPSA id m69sm8662928ioi.77.2017.12.28.19.00.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Dec 2017 19:00:00 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4001:c06::243; helo=mail-io0-x243.google.com; envelope-from=theracermaster@gmail.com; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=AcbZvrzf94mclazXyABMSOY6bt4lj7cQjNGqJdFvH7I=; b=JrEE4AK7LiIczYYa600n1GnJWInLBarNELbsn8XMoFFzgUlwnQS+LKlY/De5l+DXkT XetyEzfjXpw6x9Z8MfJxg9hCfoJeGB0drXXQh99/5mW9FZx4iZPgTtaucnYI2NtYopIn DG3MSH6aDx/MEcpQd3EEvnpdCL6ajHCbTesKRVm8GLfsgK+07LVG/6ByKehTXpJKJoAl hV76lwEMy4oITNV+GIHp44pn85lhaEOJlkV1LJKNhd0eH8HWu4vv5F53Z/GUjK72dlpv dvhSqgS5yHIHHEZb6RuIXw0kQX9WYVzVaKv6sBHH2qA55F8bwNT+xAfN4OKLz2koqHLj B0mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=AcbZvrzf94mclazXyABMSOY6bt4lj7cQjNGqJdFvH7I=; b=p30+qBLN1Vw09uKVFX9NrNl6mnv07LkFfu0DHpeyGPZ24rckaejBVRreYxtH1Yu/b+ 84dd5f/Nj3AMQdW+R2Y2fO7WkjhoBLckyp8W5CETyo4Gi1UMDSsnXWYr0dZZatet7S5H kRKQq3MfzzaPEXLaXPXK1f2q0Zp0leKRSdjDV7rx7cvWQCR85WuKB3KBduA78u2MVweK BOJw6uT4e1+06n8T8IfNmoO5W0LCrXojXAbePKiDlXI1u1jhOeQWmR7chgwE8IAZkFc5 pYBl9bzp9Hq5vW4EvD63E6+ZOYTGJZhxU1qjRl3ncuIaisxhxG97YNV08Z5kIdzUomWz tN6A== X-Gm-Message-State: AKGB3mKZPAC0QBVi4aFiJXjQ5uQjj8bihwDDHVtnTFLGlugd/Ndi++ik VhJychWVrk0NpmMoiELEZmcsqnl0 X-Google-Smtp-Source: ACJfBot71C/6mJCveZA3xW04a7d8p4WgB16JGirlMnFrpn3ZqgaGjSasd3eDG+5rjQwoZhjVtsiLeA== X-Received: by 10.107.159.83 with SMTP id i80mr42611016ioe.300.1514516401040; Thu, 28 Dec 2017 19:00:01 -0800 (PST) From: Alex James To: edk2-devel@lists.01.org Date: Thu, 28 Dec 2017 20:59:59 -0600 Message-Id: <3e0c832e5b7d71fd76ec84da996042857d6d9f2a.1514515803.git.theracermaster@gmail.com> X-Mailer: git-send-email 2.15.1 Subject: [edk2] [PATCH v2] BaseTools/PcdValueCommon: Fix build with XCODE5 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Use the correct UINT64 format specifier when building on macOS. This is needed to fix building with XCODE5. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Alex James Reviewed-by: Liming Gao --- Notes: v2: - Change ifdef to fix GCC build failure [Liming] BaseTools/Source/C/Common/PcdValueCommon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/C/Common/PcdValueCommon.c b/BaseTools/Source/= C/Common/PcdValueCommon.c index 6ca0994744..1b7b48c125 100644 --- a/BaseTools/Source/C/Common/PcdValueCommon.c +++ b/BaseTools/Source/C/Common/PcdValueCommon.c @@ -266,7 +266,7 @@ Returns: sprintf(PcdList[Index].Value, "0x%08x", (UINT32)(Value & 0xffffffff)); break; case PcdDataTypeUint64: -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__APPLE__) sprintf(PcdList[Index].Value, "0x%016lx", Value); #else sprintf(PcdList[Index].Value, "0x%016llx", Value); --=20 2.15.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel