summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitglue.c
diff options
context:
space:
mode:
authorbvernoux <bvernoux@gmail.com>2014-06-03 19:26:34 +0200
committerbvernoux <bvernoux@gmail.com>2014-06-03 19:26:34 +0200
commit82560fce75ab0307182c943d564202e55fca6c09 (patch)
treed20162c8647ddb2451fdb76024761821b43149e8 /py/emitglue.c
parent0a1dbfe02f4a693c202b97aafcf0b5d0ba050812 (diff)
parentb294a7e3c9b84aad6c331128a51e0d69e7845141 (diff)
downloadmicropython-82560fce75ab0307182c943d564202e55fca6c09.tar.gz
micropython-82560fce75ab0307182c943d564202e55fca6c09.zip
Merge branch 'master' of https://github.com/micropython/micropython
Diffstat (limited to 'py/emitglue.c')
-rw-r--r--py/emitglue.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/py/emitglue.c b/py/emitglue.c
index 528c3bd36c..a89ef6766a 100644
--- a/py/emitglue.c
+++ b/py/emitglue.c
@@ -71,17 +71,17 @@ void mp_emit_glue_assign_bytecode(mp_raw_code_t *rc, byte *code, uint len, uint
DEBUG_printf(" %s", qstr_str(arg_names[i]));
}
DEBUG_printf("\n");
- for (int i = 0; i < 128 && i < len; i++) {
- if (i > 0 && i % 16 == 0) {
- DEBUG_printf("\n");
- }
- DEBUG_printf(" %02x", code[i]);
- }
- DEBUG_printf("\n");
#endif
#if MICROPY_DEBUG_PRINTERS
if (mp_verbose_flag > 0) {
- mp_bytecode_print(code, len);
+ for (int i = 0; i < 128 && i < len; i++) {
+ if (i > 0 && i % 16 == 0) {
+ printf("\n");
+ }
+ printf(" %02x", code[i]);
+ }
+ printf("\n");
+ mp_bytecode_print(rc, code, len);
}
#endif
}