diff --git a/src/hotspot/cpu/riscv/macroAssembler_riscv.cpp b/src/hotspot/cpu/riscv/macroAssembler_riscv.cpp index 4276595ffcc..f2bdd20890b 100644 --- a/src/hotspot/cpu/riscv/macroAssembler_riscv.cpp +++ b/src/hotspot/cpu/riscv/macroAssembler_riscv.cpp @@ -2300,7 +2300,7 @@ static int patch_offset_in_jal(address branch, int64_t offset) { static int patch_offset_in_conditional_branch(address branch, int64_t offset) { assert(Assembler::is_simm13(offset) && ((offset % 2) == 0), - "offset is too large to be patched in one beq/bge/bgeu/blt/bltu/bne instruction!\n"); + "offset (%ld) is too large to be patched in one beq/bge/bgeu/blt/bltu/bne instruction!\n", offset); Assembler::patch(branch, 31, 31, (offset >> 12) & 0x1); // offset[12] ==> branch[31] Assembler::patch(branch, 30, 25, (offset >> 5) & 0x3f); // offset[10:5] ==> branch[30:25] Assembler::patch(branch, 7, 7, (offset >> 11) & 0x1); // offset[11] ==> branch[7]