From fc08ca0291c1676b090b6c3aae3eb80aac57c25c Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak <dos@dosowisko.net> Date: Wed, 11 Oct 2023 21:00:31 +0200 Subject: [PATCH] some prints --- components/micropython/vendor/py/qstr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/micropython/vendor/py/qstr.c b/components/micropython/vendor/py/qstr.c index ea700566f4..3daba6e569 100644 --- a/components/micropython/vendor/py/qstr.c +++ b/components/micropython/vendor/py/qstr.c @@ -165,7 +165,7 @@ STATIC qstr qstr_add(mp_uint_t hash, mp_uint_t len, const char *q_ptr) { pool->alloc = new_alloc; pool->len = 0; MP_STATE_VM(last_pool) = pool; - DEBUG_printf("QSTR: allocate new pool of size %d\n", MP_STATE_VM(last_pool)->alloc); + printf("QSTR: allocate new pool of size %d %p %p\n", (int)MP_STATE_VM(last_pool)->alloc, MP_STATE_VM(last_pool), MP_STATE_VM(qstr_last_chunk)); } // add the new qstr @@ -247,6 +247,7 @@ qstr qstr_from_strn(const char *str, size_t len) { } MP_STATE_VM(qstr_last_alloc) = al; MP_STATE_VM(qstr_last_used) = 0; + printf("qstr_last_chunk %p %p\n", MP_STATE_VM(qstr_last_chunk), MP_STATE_VM(last_pool)); } // allocate memory from the chunk for this new interned string's data -- GitLab