Author: Armin Rigo <[email protected]>
Branch:
Changeset: r73234:e9f0c13de06b
Date: 2014-08-31 17:07 +0200
http://bitbucket.org/pypy/pypy/changeset/e9f0c13de06b/
Log: Avoid printing <Guard0x-12345678> in the logs; use an unsigned
output.
diff --git a/rpython/jit/metainterp/logger.py b/rpython/jit/metainterp/logger.py
--- a/rpython/jit/metainterp/logger.py
+++ b/rpython/jit/metainterp/logger.py
@@ -4,6 +4,7 @@
from rpython.rlib.debug import (have_debug_prints, debug_start, debug_stop,
debug_print)
from rpython.rlib.objectmodel import we_are_translated, compute_unique_id
+from rpython.rlib.rarithmetic import r_uint
from rpython.rtyper.lltypesystem import lltype, llmemory, rffi
@@ -60,7 +61,7 @@
else:
debug_start("jit-log-opt-bridge")
debug_print("# bridge out of Guard",
- "0x%x" % compute_unique_id(descr),
+ "0x%x" % r_uint(compute_unique_id(descr)),
"with", len(operations), "ops")
logops = self._log_operations(inputargs, operations, ops_offset)
debug_stop("jit-log-opt-bridge")
@@ -154,7 +155,7 @@
if op.getdescr() is not None:
descr = op.getdescr()
if is_guard and self.guard_number:
- hash = compute_unique_id(descr)
+ hash = r_uint(compute_unique_id(descr))
r = "<Guard0x%x>" % hash
else:
r = self.repr_of_descr(descr)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit