changeset in /hg/icedtea: Fix Shark build.

Andrew John Hughes ahughes at redhat.com
Wed Jun 10 13:45:40 PDT 2009


changeset 05f411adf2f1 in /hg/icedtea
details: http://icedtea.classpath.org/hg/icedtea?cmd=changeset;node=05f411adf2f1
description:
	Fix Shark build.

	2009-06-10  Andrew John Hughes  <ahughes at redhat.com>

		* ports/hotspot/src/cpu/zero/vm/stackPrinter_zero.hpp:
		Replace PTR_FORMAT with %p as pointer is of type
		unsigned char*.

diffstat:

2 files changed, 8 insertions(+), 2 deletions(-)
ChangeLog                                           |    6 ++++++
ports/hotspot/src/cpu/zero/vm/stackPrinter_zero.hpp |    4 ++--

diffs (34 lines):

diff -r 29be67755005 -r 05f411adf2f1 ChangeLog
--- 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  Gary Benson  <gbenson at redhat
+2009-06-10  Andrew John Hughes  <ahughes at 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 at redhat.com>
 
 	* ports/hotspot/src/share/vm/shark/sharkTopLevelBlock.hpp
diff -r 29be67755005 -r 05f411adf2f1 ports/hotspot/src/cpu/zero/vm/stackPrinter_zero.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 @@ class ZeroStackPrinter {
               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 @@ class ZeroStackPrinter {
             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;
             }
           }



More information about the distro-pkg-dev mailing list