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:c0b::242; helo=mail-it0-x242.google.com; envelope-from=theracermaster@gmail.com; receiver=edk2-devel@lists.01.org Received: from mail-it0-x242.google.com (mail-it0-x242.google.com [IPv6:2607:f8b0:4001:c0b::242]) (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 7D9FE221DB29A for ; Thu, 28 Dec 2017 11:54:56 -0800 (PST) Received: by mail-it0-x242.google.com with SMTP id x28so29206454ita.0 for ; Thu, 28 Dec 2017 11:59:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=7nIZuJ6rpOJLUEAeN128kPxIRexTVBXsYBspzd3JodQ=; b=a1H8gbSaXBPTdpJW/7CJ0vUG42wawyaxG1NCvrihsVOEdCVL2GxyNvSYpZ5wqJ4Mus JnmXv01RFQmMLPaxE4QxVdySxZDmVpB5dsNV6ma4LlTaD+q6/mMWy2uzqaA0Piz1gaRP 83TibLMp3P4y/Dah6disi1ra4k3IqRaamN8AB5KgkxYGyDuZslEwRIll3vOayj51Twz7 IoMoabxAh82wvq9UK7yAjkbEzZf9opATKaQJjP1ntVZ6hYxZMsrg2EkMpBmiy1amumCo heUqXsxXt6m4D+Fe6uQ4tJvEHzn2ewDM16XCjGF3j/N4RvpKt/R5xC3ZVDTyRzuqXXDP Cxug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7nIZuJ6rpOJLUEAeN128kPxIRexTVBXsYBspzd3JodQ=; b=cIbrN2lMZ62tW3n28wLHOgdhoJj4r7+COCFNR9CNwDYcnuxvMSvvvT6tEHb5+IVYhe 4oqQV6W4FPbRt7/8fE7qc9LJquU4Hx6iVFVLk1HI/86skLM40h1bpoleW8rwZGjyh9Vn LCuV2NOj1VW+omVYrjyQ5tphI4UOkXGtCIsu2hQPAGYKd7ngsFDKXiNP8U+/1lIrbnTh wBz6YeTuZZgOlPyFt8U0QWdHYxl1C7h3h43PHTZP201O4t8lZ3DGh3K4QNFS+zqa+nvd nXYbmB8b9aYEdBm5uV4ry3bB1gmfyWclyxy8x5osmuZvk+5X6/PDn4MOBqIyTUrsmVId nmag== X-Gm-Message-State: AKGB3mKd5VaXCkaziHNSXC7ckHub2ON3XBT9Uyn9PTtV8laBUgbcNlYq BZDa7hNQPZJX5aGBvaziDrSq7Qm1 X-Google-Smtp-Source: ACJfBovNH9/Yne+aVsNt4I10ON66YIw6l06cvrMbq33opRB327AOAvHrGZv3mf9DRinxyJyhMYR9yQ== X-Received: by 10.36.173.24 with SMTP id c24mr43045414itf.11.1514491192637; Thu, 28 Dec 2017 11:59:52 -0800 (PST) Received: from localhost.localdomain ([2601:249:502:61f3:9527:2763:b42c:a20a]) by smtp.gmail.com with ESMTPSA id k65sm17077587iok.39.2017.12.28.11.59.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Dec 2017 11:59:52 -0800 (PST) From: Alex James To: edk2-devel@lists.01.org Cc: Alex James Date: Thu, 28 Dec 2017 13:59:49 -0600 Message-Id: <7baf6db5ebfdef045c69aed44d86aada99a7f4ff.1514491125.git.theracermaster@gmail.com> X-Mailer: git-send-email 2.15.1 Subject: [PATCH] BaseTools/PcdValueCommon: Fix PcdDataTypeUint64 format string 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: Thu, 28 Dec 2017 19:54:56 -0000 Always specify unsigned long long for PcdDataTypeUint64. This is needed to fix building with XCODE5. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Alex James --- BaseTools/Source/C/Common/PcdValueCommon.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/BaseTools/Source/C/Common/PcdValueCommon.c b/BaseTools/Source/C/Common/PcdValueCommon.c index 6ca0994744..f5d68e79e0 100644 --- a/BaseTools/Source/C/Common/PcdValueCommon.c +++ b/BaseTools/Source/C/Common/PcdValueCommon.c @@ -266,11 +266,7 @@ Returns: sprintf(PcdList[Index].Value, "0x%08x", (UINT32)(Value & 0xffffffff)); break; case PcdDataTypeUint64: -#ifdef __GNUC__ - sprintf(PcdList[Index].Value, "0x%016lx", Value); -#else sprintf(PcdList[Index].Value, "0x%016llx", Value); -#endif break; case PcdDataTypePointer: fprintf (stderr, "PCD %s.%s.%s.%s is structure. Use PcdSetPtr()\n", SkuName, DefaultValueName, TokenSpaceGuidName, TokenName); -- 2.15.1