Mercurial > hg > truffle
diff src/gpu/ptx/vm/gpu_ptx.cpp @ 18043:f55f2d400797
Fix some format strings
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Wed, 15 Oct 2014 20:34:55 +0200 |
parents | 063ec2920d21 |
children |
line wrap: on
line diff
--- a/src/gpu/ptx/vm/gpu_ptx.cpp Thu Oct 16 10:50:27 2014 +0200 +++ b/src/gpu/ptx/vm/gpu_ptx.cpp Wed Oct 15 20:34:55 2014 +0200 @@ -470,7 +470,7 @@ char* message = NEW_RESOURCE_ARRAY_IN_THREAD(THREAD, char, O_BUFLEN + 1); jio_snprintf(message, O_BUFLEN, "[CUDA] *** Error (status=%d): %s", status, action); if (TraceGPUInteraction) { - tty->print_cr(message); + tty->print_raw_cr(message); } if (!HAS_PENDING_EXCEPTION) { SharedRuntime::throw_and_post_jvmti_exception(_thread, vmSymbols::java_lang_RuntimeException(), message); @@ -641,7 +641,7 @@ if (obj != NULL) { char type[256]; obj->klass()->name()->as_C_string(type, 256); - _st->print("oop "PTR_FORMAT" (%s)", (address) obj, type); + _st->print("oop "INTPTR_FORMAT" (%s)", p2i(obj), type); } else { _st->print("oop null"); } @@ -688,7 +688,7 @@ _device_context = NULL; } else { if (TraceGPUInteraction) { - tty->print_cr("[CUDA] Destroyed context", status); + tty->print_cr("[CUDA] Destroyed context"); } } }