diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-12 16:18:40 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-12 18:25:17 +0300 |
commit | faf84491ce0f8bbd3da9af736b5bfa2d371d268c (patch) | |
tree | 921fb0223af5f62b3ec6ce14852685355b9224e7 /py | |
parent | d6c5d398fe4c5d46073ab94a75c932899a730472 (diff) | |
download | micropython-faf84491ce0f8bbd3da9af736b5bfa2d371d268c.tar.gz micropython-faf84491ce0f8bbd3da9af736b5bfa2d371d268c.zip |
showbc: Add quotes around (some) string args, to show empty string properly.
Diffstat (limited to 'py')
-rw-r--r-- | py/showbc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/py/showbc.c b/py/showbc.c index 08dec1e2bf..c3342ca841 100644 --- a/py/showbc.c +++ b/py/showbc.c @@ -98,7 +98,7 @@ void mp_byte_code_print(const byte *ip, int len) { case MP_BC_LOAD_CONST_ID: DECODE_QSTR; - printf("LOAD_CONST_ID %s", qstr_str(qstr)); + printf("LOAD_CONST_ID '%s'", qstr_str(qstr)); break; case MP_BC_LOAD_CONST_BYTES: @@ -108,7 +108,7 @@ void mp_byte_code_print(const byte *ip, int len) { case MP_BC_LOAD_CONST_STRING: DECODE_QSTR; - printf("LOAD_CONST_STRING %s", qstr_str(qstr)); + printf("LOAD_CONST_STRING '%s'", qstr_str(qstr)); break; case MP_BC_LOAD_NULL: @@ -452,12 +452,12 @@ void mp_byte_code_print(const byte *ip, int len) { case MP_BC_IMPORT_NAME: DECODE_QSTR; - printf("IMPORT_NAME %s", qstr_str(qstr)); + printf("IMPORT_NAME '%s'", qstr_str(qstr)); break; case MP_BC_IMPORT_FROM: DECODE_QSTR; - printf("IMPORT_FROM %s", qstr_str(qstr)); + printf("IMPORT_FROM '%s'", qstr_str(qstr)); break; case MP_BC_IMPORT_STAR: |