Mercurial > hg > icedtea7
changeset 1887:05f411adf2f1
Fix Shark build.
2009-06-10 Andrew John Hughes <ahughes@redhat.com>
* ports/hotspot/src/cpu/zero/vm/stackPrinter_zero.hpp:
Replace PTR_FORMAT with %p as pointer is of type
unsigned char*.
author | Andrew John Hughes <ahughes@redhat.com> |
---|---|
date | Wed, 10 Jun 2009 20:49:02 +0100 |
parents | 29be67755005 |
children | f95ae75a68c6 |
files | ChangeLog ports/hotspot/src/cpu/zero/vm/stackPrinter_zero.hpp |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Jun 10 13:22:21 2009 +0100 +++ b/ChangeLog Wed Jun 10 20:49:02 2009 +0100 @@ -1,3 +1,9 @@ +2009-06-10 Andrew John Hughes <ahughes@redhat.com> + + * ports/hotspot/src/cpu/zero/vm/stackPrinter_zero.hpp: + Replace PTR_FORMAT with %p as pointer is of type + unsigned char*. + 2009-06-10 Gary Benson <gbenson@redhat.com> * ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.hpp
--- a/ports/hotspot/src/cpu/zero/vm/stackPrinter_zero.hpp Wed Jun 10 13:22:21 2009 +0100 +++ b/ports/hotspot/src/cpu/zero/vm/stackPrinter_zero.hpp Wed Jun 10 20:49:02 2009 +0100 @@ -117,7 +117,7 @@ field = "istate->_method"; } else if (is_valid && !strcmp(field, "_bcp") && istate->bcp()) { - snprintf(_buf, _buflen, PTR_FORMAT " (bci %d)", istate->bcp(), + snprintf(_buf, _buflen, "%p (bci %d)", istate->bcp(), istate->method()->bci_from(istate->bcp())); value = _buf; field = "istate->_bcp"; @@ -209,7 +209,7 @@ address pc = sf->pc(); if (code->pc_desc_at(pc)) { SimpleScopeDesc ssd(code, pc); - snprintf(_buf, _buflen, PTR_FORMAT " (bci %d)", pc, ssd.bci()); + snprintf(_buf, _buflen, "%p (bci %d)", pc, ssd.bci()); value = _buf; } }