From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 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) 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) 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) 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: [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: , X-List-Received-Date: Fri, 29 Dec 2017 02:55:05 -0000 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 --- 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); -- 2.15.1