diff options
author | Edward Nevill edward.nevill@linaro.org <Edward Nevill edward.nevill@linaro.org> | 2014-06-11 13:47:40 +0100 |
---|---|---|
committer | Edward Nevill edward.nevill@linaro.org <Edward Nevill edward.nevill@linaro.org> | 2014-06-11 13:47:40 +0100 |
commit | 859e348c4675c0ffdcd7706c8f36875aafc867ac (patch) | |
tree | a816e486a8c74afccf09471be78f594fd499c4c0 | |
parent | 850f60e31e459bdf03b27c6be3d3c28c8d7bc3d9 (diff) |
Fix format errors
-rw-r--r-- | src/cpu/aarch64/vm/c1_LinearScan_aarch64.cpp | 2 | ||||
-rw-r--r-- | src/cpu/aarch64/vm/c1_Runtime1_aarch64.cpp | 4 | ||||
-rw-r--r-- | src/cpu/aarch64/vm/compiledIC_aarch64.cpp | 2 | ||||
-rw-r--r-- | src/cpu/aarch64/vm/frame_aarch64.cpp | 2 | ||||
-rw-r--r-- | src/cpu/aarch64/vm/nativeInst_aarch64.cpp | 2 | ||||
-rw-r--r-- | src/cpu/aarch64/vm/vtableStubs_aarch64.cpp | 4 | ||||
-rw-r--r-- | src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp | 8 |
7 files changed, 12 insertions, 12 deletions
diff --git a/src/cpu/aarch64/vm/c1_LinearScan_aarch64.cpp b/src/cpu/aarch64/vm/c1_LinearScan_aarch64.cpp index c9876049a..da4480f6a 100644 --- a/src/cpu/aarch64/vm/c1_LinearScan_aarch64.cpp +++ b/src/cpu/aarch64/vm/c1_LinearScan_aarch64.cpp @@ -97,7 +97,7 @@ void LinearScan::allocate_fpu_stack() { #ifndef PRODUCT if (TraceFPURegisterUsage) { - tty->print("FPU regs for block %d, LIR instr %d): ", b->block_id(), id); regs.print_on(tty); tty->print_cr(""); + tty->print("FPU regs for block %d, LIR instr %d): ", b->block_id(), id); regs.print_on(tty); tty->cr(); } #endif } diff --git a/src/cpu/aarch64/vm/c1_Runtime1_aarch64.cpp b/src/cpu/aarch64/vm/c1_Runtime1_aarch64.cpp index 8dc76d033..9d89d2313 100644 --- a/src/cpu/aarch64/vm/c1_Runtime1_aarch64.cpp +++ b/src/cpu/aarch64/vm/c1_Runtime1_aarch64.cpp @@ -1524,8 +1524,8 @@ JRT_ENTRY(void, Runtime1::patch_code_aarch64(JavaThread* thread, Runtime1::StubI address copy_buff = stub_location - *byte_skip - *byte_count; address being_initialized_entry = stub_location - *being_initialized_entry_offset; if (TracePatching) { - tty->print_cr(" Patching %s at bci %d at address 0x%x (%s)", Bytecodes::name(code), bci, - instr_pc, (stub_id == Runtime1::access_field_patching_id) ? "field" : "klass"); + tty->print_cr(" Patching %s at bci %d at address " INTPTR_FORMAT " (%s)", Bytecodes::name(code), bci, + p2i(instr_pc), (stub_id == Runtime1::access_field_patching_id) ? "field" : "klass"); nmethod* caller_code = CodeCache::find_nmethod(caller_frame.pc()); assert(caller_code != NULL, "nmethod not found"); diff --git a/src/cpu/aarch64/vm/compiledIC_aarch64.cpp b/src/cpu/aarch64/vm/compiledIC_aarch64.cpp index b4d6e220d..c0076c8ce 100644 --- a/src/cpu/aarch64/vm/compiledIC_aarch64.cpp +++ b/src/cpu/aarch64/vm/compiledIC_aarch64.cpp @@ -124,7 +124,7 @@ void CompiledStaticCall::set_to_interpreted(methodHandle callee, address entry) if (TraceICs) { ResourceMark rm; tty->print_cr("CompiledStaticCall@" INTPTR_FORMAT ": set_to_interpreted %s", - instruction_address(), + p2i(instruction_address()), callee->name_and_sig_as_C_string()); } diff --git a/src/cpu/aarch64/vm/frame_aarch64.cpp b/src/cpu/aarch64/vm/frame_aarch64.cpp index 7c4ce11b6..7613fcc46 100644 --- a/src/cpu/aarch64/vm/frame_aarch64.cpp +++ b/src/cpu/aarch64/vm/frame_aarch64.cpp @@ -270,7 +270,7 @@ void frame::patch_pc(Thread* thread, address pc) { address* pc_addr = &(((address*) sp())[-1]); if (TracePcPatching) { tty->print_cr("patch_pc at address " INTPTR_FORMAT " [" INTPTR_FORMAT " -> " INTPTR_FORMAT "]", - pc_addr, *pc_addr, pc); + p2i(pc_addr), p2i(*pc_addr), p2i(pc)); } // Either the return address is the original one or we are going to // patch in the same address that's already there. diff --git a/src/cpu/aarch64/vm/nativeInst_aarch64.cpp b/src/cpu/aarch64/vm/nativeInst_aarch64.cpp index 0b5060591..0ff5edf1c 100644 --- a/src/cpu/aarch64/vm/nativeInst_aarch64.cpp +++ b/src/cpu/aarch64/vm/nativeInst_aarch64.cpp @@ -86,7 +86,7 @@ void NativeMovConstReg::set_data(intptr_t x) { void NativeMovConstReg::print() { tty->print_cr(PTR_FORMAT ": mov reg, " INTPTR_FORMAT, - instruction_address(), data()); + p2i(instruction_address()), data()); } //------------------------------------------------------------------- diff --git a/src/cpu/aarch64/vm/vtableStubs_aarch64.cpp b/src/cpu/aarch64/vm/vtableStubs_aarch64.cpp index 80e1c1fd1..85290ef85 100644 --- a/src/cpu/aarch64/vm/vtableStubs_aarch64.cpp +++ b/src/cpu/aarch64/vm/vtableStubs_aarch64.cpp @@ -104,7 +104,7 @@ VtableStub* VtableStubs::create_vtable_stub(int vtable_index) { if (PrintMiscellaneous && (WizardMode || Verbose)) { tty->print_cr("vtable #%d at "PTR_FORMAT"[%d] left over: %d", - vtable_index, s->entry_point(), + vtable_index, p2i(s->entry_point()), (int)(s->code_end() - s->entry_point()), (int)(s->code_end() - __ pc())); } @@ -185,7 +185,7 @@ VtableStub* VtableStubs::create_itable_stub(int itable_index) { if (PrintMiscellaneous && (WizardMode || Verbose)) { tty->print_cr("itable #%d at "PTR_FORMAT"[%d] left over: %d", - itable_index, s->entry_point(), + itable_index, p2i(s->entry_point()), (int)(s->code_end() - s->entry_point()), (int)(s->code_end() - __ pc())); } diff --git a/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp b/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp index 1815e0565..ecd0d51d9 100644 --- a/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp +++ b/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp @@ -621,12 +621,12 @@ void os::print_context(outputStream *st, void *context) { st->cr(); #else for (int r = 0; r < 31; r++) - st->print_cr( "R%d=" INTPTR_FORMAT, r, uc->uc_mcontext.regs[r]); + st->print_cr( "R%d=" INTPTR_FORMAT, r, (int64_t)uc->uc_mcontext.regs[r]); #endif st->cr(); intptr_t *sp = (intptr_t *)os::Linux::ucontext_get_sp(uc); - st->print_cr("Top of Stack: (sp=" PTR_FORMAT ")", sp); + st->print_cr("Top of Stack: (sp=" PTR_FORMAT ")", p2i(sp)); print_hex_dump(st, (address)sp, (address)(sp + 8*sizeof(intptr_t)), sizeof(intptr_t)); st->cr(); @@ -634,7 +634,7 @@ void os::print_context(outputStream *st, void *context) { // point to garbage if entry point in an nmethod is corrupted. Leave // this at the end, and hope for the best. address pc = os::Linux::ucontext_get_pc(uc); - st->print_cr("Instructions: (pc=" PTR_FORMAT ")", pc); + st->print_cr("Instructions: (pc=" PTR_FORMAT ")", p2i(pc)); print_hex_dump(st, pc - 32, pc + 32, sizeof(char)); } @@ -671,7 +671,7 @@ void os::print_register_info(outputStream *st, void *context) { st->print("R15="); print_location(st, uc->uc_mcontext.gregs[REG_R15]); #else for (int r = 0; r < 31; r++) - st->print_cr( "R%d=" INTPTR_FORMAT, r, uc->uc_mcontext.regs[r]); + st->print_cr( "R%d=" INTPTR_FORMAT, r, (int64_t)uc->uc_mcontext.regs[r]); #endif st->cr(); } |