# HG changeset patch # User lucy # Date 1558621162 -7200 # Node ID 5952fea01389f71369383edc8aa124e8d1687d22 # Parent 617e7f0e370d3ef28465595085c3373ddeca2af5 8224652: 32-bit build failures after JDK-8213084 Contributed-by: shade@redhat.com Reviewed-by: thartmann diff --git a/src/hotspot/share/compiler/abstractDisassembler.cpp b/src/hotspot/share/compiler/abstractDisassembler.cpp --- a/src/hotspot/share/compiler/abstractDisassembler.cpp +++ b/src/hotspot/share/compiler/abstractDisassembler.cpp @@ -213,7 +213,7 @@ st->print(" long"); } else { if (((uintptr_t)(here)&0x07) == 0) { - st->print("%23.1ld", *((jlong*)here)); + st->print(JLONG_FORMAT_W(23), *((jlong*)here)); } } st->fill_to(align += 3*tsize); diff --git a/src/hotspot/share/utilities/globalDefinitions.hpp b/src/hotspot/share/utilities/globalDefinitions.hpp --- a/src/hotspot/share/utilities/globalDefinitions.hpp +++ b/src/hotspot/share/utilities/globalDefinitions.hpp @@ -97,6 +97,9 @@ #ifndef JLONG_FORMAT #define JLONG_FORMAT INT64_FORMAT #endif +#ifndef JLONG_FORMAT_W +#define JLONG_FORMAT_W(width) INT64_FORMAT_W(width) +#endif #ifndef JULONG_FORMAT #define JULONG_FORMAT UINT64_FORMAT #endif