hotspot/src/share/vm/libadt/dict.cpp
changeset 33148 68fa8b6c4340
parent 24429 4efc66ee325c
child 33794 41ef3dc95179
--- a/hotspot/src/share/vm/libadt/dict.cpp	Thu Oct 08 12:44:12 2015 +0200
+++ b/hotspot/src/share/vm/libadt/dict.cpp	Fri Oct 09 09:42:33 2015 +0200
@@ -31,8 +31,6 @@
 
 #include <assert.h>
 
-PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
-
 //------------------------------data-----------------------------------------
 // String hash tables
 #define MAXID 20
@@ -288,9 +286,9 @@
 // Handier print routine
 void Dict::print() {
   DictI i(this); // Moved definition in iterator here because of g++.
-  tty->print("Dict@0x%lx[%d] = {", this, _cnt);
+  tty->print("Dict@" INTPTR_FORMAT "[%d] = {", p2i(this), _cnt);
   for( ; i.test(); ++i ) {
-    tty->print("(0x%lx,0x%lx),", i._key, i._value);
+    tty->print("(" INTPTR_FORMAT "," INTPTR_FORMAT "),", p2i(i._key), p2i(i._value));
   }
   tty->print_cr("}");
 }