8224742: JLONG_FORMAT_W incompatible with type jlong
authorlucy
Fri, 24 May 2019 15:36:48 +0200
changeset 55030 703b2c04fc2c
parent 55029 fc66237d5eae
child 55031 37a077319427
child 57371 c5d034df9693
8224742: JLONG_FORMAT_W incompatible with type jlong Reviewed-by: thartmann, clanger
src/hotspot/share/utilities/globalDefinitions_gcc.hpp
--- a/src/hotspot/share/utilities/globalDefinitions_gcc.hpp	Wed May 22 21:24:09 2019 -0400
+++ b/src/hotspot/share/utilities/globalDefinitions_gcc.hpp	Fri May 24 15:36:48 2019 +0200
@@ -250,7 +250,8 @@
 #define offsetof(klass,field) offset_of(klass,field)
 
 #if defined(_LP64) && defined(__APPLE__)
-#define JLONG_FORMAT           "%ld"
+#define JLONG_FORMAT          "%ld"
+#define JLONG_FORMAT_W(width) "%" #width "ld"
 #endif // _LP64 && __APPLE__
 
 #ifndef USE_LIBRARY_BASED_TLS_ONLY