[coreboot-gerrit] Change in ...coreboot[master]: arch/x86/include/stdint: Fix PRIu64

Patrick Rudolph (Code Review) gerrit at coreboot.org
Sun Dec 2 11:32:12 CET 2018


Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/30002


Change subject: arch/x86/include/stdint: Fix PRIu64
......................................................................

arch/x86/include/stdint: Fix PRIu64

We alwas define uint64_t as unsigned long long, even on x86_64.
Fix PRIu64 to match the definition of the datatype, to prevent
compilation errors when compiling for x86_64.

Change-Id: I7b10a18eab492f02d39fc2074b47f5fdc7209f3d
Signed-off-by: Patrick Rudolph <siro at das-labor.org>
---
M src/arch/x86/include/stdint.h
1 file changed, 0 insertions(+), 12 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/02/30002/1

diff --git a/src/arch/x86/include/stdint.h b/src/arch/x86/include/stdint.h
index 16f6acd..6c40002 100644
--- a/src/arch/x86/include/stdint.h
+++ b/src/arch/x86/include/stdint.h
@@ -99,23 +99,11 @@
 # define UINT64_MAX (18446744073709551615ULL)
 #endif
 
-#ifdef __x86_64__
-
-#ifndef UINT64_C
-#define UINT64_C(c) c ## UL
-#endif
-#ifndef PRIu64
-#define PRIu64 "lu"
-#endif
-
-#else
-
 #ifndef UINT64_C
 #define UINT64_C(c) c ## ULL
 #endif
 #ifndef PRIu64
 #define PRIu64 "llu"
-#endif
 
 #endif
 

-- 
To view, visit https://review.coreboot.org/c/coreboot/+/30002
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7b10a18eab492f02d39fc2074b47f5fdc7209f3d
Gerrit-Change-Number: 30002
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <siro at das-labor.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181202/bbd32b9e/attachment.html>


More information about the coreboot-gerrit mailing list