summaryrefslogtreecommitdiff
path: root/py/emitglue.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-10-24 14:42:50 +0000
committerDamien George <damien.p.george@gmail.com>2014-10-24 14:42:50 +0000
commit564963a1700bfca8f053f864ad170d4a34a26270 (patch)
treefe908fc883f98319f84bc4e34b6d3ba8e76a3365 /py/emitglue.c
parentd00d8ac95c927b5a4ebc14fa9dbb2dfee7b2ae40 (diff)
py: Fix debug-printing of bytecode line numbers.
Also move the raw bytecode printing code from emitglue to mp_bytecode_print.
Diffstat (limited to 'py/emitglue.c')
-rw-r--r--py/emitglue.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/py/emitglue.c b/py/emitglue.c
index 99cd3f383..dd31de925 100644
--- a/py/emitglue.c
+++ b/py/emitglue.c
@@ -74,13 +74,6 @@ void mp_emit_glue_assign_bytecode(mp_raw_code_t *rc, byte *code, mp_uint_t len,
#endif
#if MICROPY_DEBUG_PRINTERS
if (mp_verbose_flag > 0) {
- for (mp_uint_t i = 0; i < len; i++) {
- if (i > 0 && i % 16 == 0) {
- printf("\n");
- }
- printf(" %02x", code[i]);
- }
- printf("\n");
mp_bytecode_print(rc, code, len);
}
#endif