summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-05-04 22:39:40 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-05-04 22:42:11 +0300
commit4187068cad7a68e54db86eabb115d18fc55d590e (patch)
treea93a51bc10dcd95d9f3a4538ae89dd8d281af9fd /py
parent5fc400ccdb17a7208fbf2d3ea93985d922b1a35d (diff)
downloadmicropython-4187068cad7a68e54db86eabb115d18fc55d590e.tar.gz
micropython-4187068cad7a68e54db86eabb115d18fc55d590e.zip
showbc: Quote block name, so it was easily visible.
Diffstat (limited to 'py')
-rw-r--r--py/showbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/showbc.c b/py/showbc.c
index ccb703f263..d8ab4be074 100644
--- a/py/showbc.c
+++ b/py/showbc.c
@@ -89,7 +89,7 @@ void mp_byte_code_print(const byte *ip, int len) {
{
qstr source_file = code_info[4] | (code_info[5] << 8) | (code_info[6] << 16) | (code_info[7] << 24);
qstr block_name = code_info[8] | (code_info[9] << 8) | (code_info[10] << 16) | (code_info[11] << 24);
- printf("File %s, block %s\n", qstr_str(source_file), qstr_str(block_name));
+ printf("File %s, block '%s'\n", qstr_str(source_file), qstr_str(block_name));
machine_int_t bc = (code_info + code_info_size) - ip;
machine_uint_t source_line = 1;
printf(" bc=" INT_FMT " line=" UINT_FMT "\n", bc, source_line);