$OpenBSD: patch-hotspot_src_share_vm_interpreter_bytecodeTracer_cpp,v 1.3 2008/03/19 18:05:43 kurt Exp $
--- hotspot/src/share/vm/interpreter/bytecodeTracer.cpp.orig	Tue Oct 30 05:00:45 2007
+++ hotspot/src/share/vm/interpreter/bytecodeTracer.cpp	Wed Nov  7 13:09:16 2007
@@ -74,7 +74,7 @@ class BytecodePrinter: public BytecodeClosure {
       // the incoming method.  We could lose a line of trace output.
       // This is acceptable in a debug-only feature.
       st->cr();
-      st->print("[%d] ", (int) Thread::current()->osthread()->thread_id());
+      st->print("[%ld] ", (long) Thread::current()->osthread()->thread_id());
       method->print_name(st);
       st->cr();
       _current_method = method();
@@ -87,7 +87,7 @@ class BytecodePrinter: public BytecodeClosure {
       code = Bytecodes::code_at(bcp);
     }
     int bci = bcp - method->code_base();
-    st->print("[%d] ", (int) Thread::current()->osthread()->thread_id());
+    st->print("[%ld] ", (long) Thread::current()->osthread()->thread_id());
     if (Verbose) {
       st->print("%8d  %4d  " INTPTR_FORMAT " " INTPTR_FORMAT " %s",
            BytecodeCounter::counter_value(), bci, tos, tos2, Bytecodes::name(code));
