summaryrefslogtreecommitdiff
path: root/stmhal/can.c
diff options
context:
space:
mode:
authorblmorris <bryan.morrissey@gmail.com>2015-04-16 13:40:06 -0400
committerDamien George <damien.p.george@gmail.com>2015-04-16 22:30:00 +0100
commit4c459213499b289a1710aa0e6d3fb80c4889cc1f (patch)
tree3c4da3c9055f7b0bc83a282821400053b8fd2091 /stmhal/can.c
parentfeff00e1a58aad4e7251d9c10403768fa814c5dd (diff)
stmhal: Use new %q format to print qstr's in a few more places.
Saves 68 bytes.
Diffstat (limited to 'stmhal/can.c')
-rw-r--r--stmhal/can.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/can.c b/stmhal/can.c
index 66693f30d..02afbbf82 100644
--- a/stmhal/can.c
+++ b/stmhal/can.c
@@ -186,13 +186,13 @@ STATIC void pyb_can_print(const mp_print_t *print, mp_obj_t self_in, mp_print_ki
case CAN_MODE_SILENT: mode = MP_QSTR_SILENT; break;
case CAN_MODE_SILENT_LOOPBACK: default: mode = MP_QSTR_SILENT_LOOPBACK; break;
}
- mp_printf(print, "%s, extframe=", qstr_str(mode));
+ mp_printf(print, "%q, extframe=", mode);
if (self->extframe) {
mode = MP_QSTR_True;
} else {
mode = MP_QSTR_False;
}
- mp_printf(print, "%s)", qstr_str(mode));
+ mp_printf(print, "%q)", mode);
}
}