8139762: Format warnings in libjvm_db.c
Summary: Fix format string
Reviewed-by: sspitsyn
--- a/hotspot/src/os/bsd/dtrace/libjvm_db.c Wed Oct 14 14:51:10 2015 +0200
+++ b/hotspot/src/os/bsd/dtrace/libjvm_db.c Wed Oct 28 18:20:26 2015 +0300
@@ -834,7 +834,7 @@
if (stream_bci == vf->bci) {
/* perfect match */
if (debug > 2)
- fprintf(stderr, "\t line_number_from_bci: END: exact line: %ld \n\n", vf->line);
+ fprintf(stderr, "\t line_number_from_bci: END: exact line: %d \n\n", vf->line);
vf->line = stream_line;
return PS_OK;
} else {
@@ -843,14 +843,14 @@
best_bci = stream_bci;
vf->line = stream_line;
if (debug > 2) {
- fprintf(stderr, "\t line_number_from_bci: best_bci: %ld, best_line: %ld\n",
+ fprintf(stderr, "\t line_number_from_bci: best_bci: %d, best_line: %d\n",
best_bci, vf->line);
}
}
}
}
if (debug > 2)
- fprintf(stderr, "\t line_number_from_bci: END: line: %ld \n\n", vf->line);
+ fprintf(stderr, "\t line_number_from_bci: END: line: %d \n\n", vf->line);
return PS_OK;
fail:
@@ -1002,7 +1002,7 @@
err = line_number_from_bci(N->J, vf);
CHECK_FAIL(err);
if (debug > 2) {
- fprintf(stderr, "\t scopeDesc_chain: method: %#8llx, line: %ld\n",
+ fprintf(stderr, "\t scopeDesc_chain: method: %#8llx, line: %d\n",
vf->method, vf->line);
}
}
@@ -1338,7 +1338,7 @@
jframe->bci = vf->bci;
jframe->line = vf->line;
if (debug) {
- fprintf(stderr, "\t Jget_vframe: method name: %s, line: %ld\n",
+ fprintf(stderr, "\t Jget_vframe: method name: %s, line: %d\n",
name, vf->line);
}
return PS_OK;
--- a/hotspot/src/os/solaris/dtrace/libjvm_db.c Wed Oct 14 14:51:10 2015 +0200
+++ b/hotspot/src/os/solaris/dtrace/libjvm_db.c Wed Oct 28 18:20:26 2015 +0300
@@ -834,7 +834,7 @@
if (stream_bci == vf->bci) {
/* perfect match */
if (debug > 2)
- fprintf(stderr, "\t line_number_from_bci: END: exact line: %ld \n\n", vf->line);
+ fprintf(stderr, "\t line_number_from_bci: END: exact line: %d \n\n", vf->line);
vf->line = stream_line;
return PS_OK;
} else {
@@ -843,14 +843,14 @@
best_bci = stream_bci;
vf->line = stream_line;
if (debug > 2) {
- fprintf(stderr, "\t line_number_from_bci: best_bci: %ld, best_line: %ld\n",
+ fprintf(stderr, "\t line_number_from_bci: best_bci: %d, best_line: %d\n",
best_bci, vf->line);
}
}
}
}
if (debug > 2)
- fprintf(stderr, "\t line_number_from_bci: END: line: %ld \n\n", vf->line);
+ fprintf(stderr, "\t line_number_from_bci: END: line: %d \n\n", vf->line);
return PS_OK;
fail:
@@ -1002,7 +1002,7 @@
err = line_number_from_bci(N->J, vf);
CHECK_FAIL(err);
if (debug > 2) {
- fprintf(stderr, "\t scopeDesc_chain: method: %#8llx, line: %ld\n",
+ fprintf(stderr, "\t scopeDesc_chain: method: %#8llx, line: %d\n",
vf->method, vf->line);
}
}
@@ -1338,7 +1338,7 @@
jframe->bci = vf->bci;
jframe->line = vf->line;
if (debug) {
- fprintf(stderr, "\t Jget_vframe: method name: %s, line: %ld\n",
+ fprintf(stderr, "\t Jget_vframe: method name: %s, line: %d\n",
name, vf->line);
}
return PS_OK;