diff --git a/components/micropython/vendor/py/qstr.c b/components/micropython/vendor/py/qstr.c
index 7946fc29f87bdfd75338a9d1d3db62eb05b2cac4..ea700566f4f7d74f6db3860705708361b2362641 100644
--- a/components/micropython/vendor/py/qstr.c
+++ b/components/micropython/vendor/py/qstr.c
@@ -136,7 +136,7 @@ STATIC const qstr_pool_t *find_qstr(qstr *q) {
 
 // qstr_mutex must be taken while in this function
 STATIC qstr qstr_add(mp_uint_t hash, mp_uint_t len, const char *q_ptr) {
-    printf("QSTR: add hash=%d len=%d data=%.*s\n", (int)hash, (int)len, (int)len, q_ptr);
+    DEBUG_printf("QSTR: add hash=%d len=%d data=%.*s\n", hash, len, len, q_ptr);
 
     // make sure we have room in the pool for a new qstr
     if (MP_STATE_VM(last_pool)->len >= MP_STATE_VM(last_pool)->alloc) {