Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix printf formatters in jvmti tests to avoid compiler errors #1914

Merged
merged 1 commit into from
May 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ fr002PrimitiveFieldCallback(jvmtiHeapReferenceKind reference_kind,
abort();
}

printf("\t\t\t[%08x:%08x] [%d %s] idx=%ld vt=%d\n",
printf("\t\t\t[%08x:%08x] [%d %s] idx=%d vt=%d\n",
getTag(class_tag),
getTag(*tag_ptr),
reference_kind, heapReferenceKindString(reference_kind),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ testFollowReferences_primitiveFieldCallback(jvmtiHeapReferenceKind reference_kin
printf("testFollowReferences_primitiveFieldCallback tag %llx:%llx\n", class_tag, *tag_ptr);
} else {
if (class_tag != 0L) {
printf("testFollowReferences_primitiveFieldCallback Class tag %x\n", class_tag);
printf("testFollowReferences_primitiveFieldCallback Class tag %llx\n", class_tag);
}
}

Expand Down Expand Up @@ -200,7 +200,7 @@ testFollowReferences_heapRefCallback(jvmtiHeapReferenceKind refKind,
}

if (refKind == JVMTI_HEAP_REFERENCE_STACK_LOCAL) {
printf("\tdepth=0x%x method=0x%p location=0x%x slot=0x%x\n",
printf("\tdepth=0x%x method=0x%p location=0x%llx slot=0x%x\n",
refInfo->stack_local.depth,
refInfo->stack_local.method,
refInfo->stack_local.location,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ testFollowReferences_primitiveFieldCallback(jvmtiHeapReferenceKind reference_kin

} else {
if (class_tag != 0L) {
printf("testFollowReferences_primitiveFieldCallback Class tag %x\n", class_tag);
printf("testFollowReferences_primitiveFieldCallback Class tag %llx\n", class_tag);
}
}

Expand Down