mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-08-03 04:18:17 +00:00
fix(core): dump allocated QSTRs also in debug firmware
Otherwise, it's hard to understand which QSTR causes the assertion error. [no changelog]
This commit is contained in:
parent
2983be7287
commit
4e4798fe38
@ -329,9 +329,7 @@ STATIC mp_obj_t mod_trezorutils_check_heap_fragmentation(void) {
|
|||||||
size_t n_pool, n_qstr, n_str_data_bytes, n_total_bytes;
|
size_t n_pool, n_qstr, n_str_data_bytes, n_total_bytes;
|
||||||
qstr_pool_info(&n_pool, &n_qstr, &n_str_data_bytes, &n_total_bytes);
|
qstr_pool_info(&n_pool, &n_qstr, &n_str_data_bytes, &n_total_bytes);
|
||||||
if (n_pool) {
|
if (n_pool) {
|
||||||
#ifdef TREZOR_EMULATOR
|
|
||||||
qstr_dump_data();
|
qstr_dump_data();
|
||||||
#endif
|
|
||||||
mp_raise_msg_varg(&mp_type_AssertionError,
|
mp_raise_msg_varg(&mp_type_AssertionError,
|
||||||
"Runtime QSTR allocation: " UINT_FMT " pools, " UINT_FMT
|
"Runtime QSTR allocation: " UINT_FMT " pools, " UINT_FMT
|
||||||
" strings, " UINT_FMT " data bytes, " UINT_FMT
|
" strings, " UINT_FMT " data bytes, " UINT_FMT
|
||||||
|
Loading…
Reference in New Issue
Block a user