summaryrefslogtreecommitdiffstatshomepage
path: root/py/objfun.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-04-11 13:03:37 +0100
committerDamien George <damien.p.george@gmail.com>2015-04-16 14:30:16 +0000
commit044c473de203b4dbe93874813b430fb6336db2b2 (patch)
treef632b62412031458b7a9438fa144ef5a6ebd1f66 /py/objfun.c
parente72cda99fd5fc9e7c6476eb8574c4401d3ef9560 (diff)
downloadmicropython-044c473de203b4dbe93874813b430fb6336db2b2.tar.gz
micropython-044c473de203b4dbe93874813b430fb6336db2b2.zip
py: Add %q format support to mp_[v]printf, and use it.
Diffstat (limited to 'py/objfun.c')
-rw-r--r--py/objfun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objfun.c b/py/objfun.c
index 8b9d3f553b..77db2df501 100644
--- a/py/objfun.c
+++ b/py/objfun.c
@@ -128,7 +128,7 @@ qstr mp_obj_fun_get_name(mp_const_obj_t fun_in) {
STATIC void fun_bc_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) {
(void)kind;
mp_obj_fun_bc_t *o = o_in;
- mp_printf(print, "<function %s at 0x%x>", qstr_str(mp_obj_fun_get_name(o)), o);
+ mp_printf(print, "<function %q at 0x%x>", mp_obj_fun_get_name(o), o);
}
#endif