Skip to content

Commit

Permalink
moving address printing before string
Browse files Browse the repository at this point in the history
  • Loading branch information
h3110n3rv3 committed Jan 17, 2025
1 parent 511a957 commit 34fd8b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/rastrace/method_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,9 @@ traceMethodArgObject(J9VMThread *thr, UDATA* arg0EA, char* cursor, UDATA length)
if (NULL == utf8String) {
j9str_printf(PORTLIB, cursor, length, "(String)<Memory allocation error>");
} else if (utf8Length > maxStringLength) {
j9str_printf(PORTLIB, cursor, length, "(String)\"%.*s\"...@%p", (U_32)maxStringLength, utf8String, object);
j9str_printf(PORTLIB, cursor, length, "(String)@%p - \"%.*s\"...", (U_32)maxStringLength, utf8String, object);
} else {
j9str_printf(PORTLIB, cursor, length, "(String)\"%.*s\"@%p", (U_32)utf8Length, utf8String, object);
j9str_printf(PORTLIB, cursor, length, "@%p - (String)\"%.*s\"", (U_32)utf8Length, utf8String, object);
}

if (utf8Buffer != utf8String) {
Expand Down

0 comments on commit 34fd8b7

Please sign in to comment.