summaryrefslogtreecommitdiff
path: root/py/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/map.c')
-rw-r--r--py/map.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/py/map.c b/py/map.c
index 6abf4853f..fc5e1b1b7 100644
--- a/py/map.c
+++ b/py/map.c
@@ -423,13 +423,13 @@ void mp_set_clear(mp_set_t *set) {
#if defined(DEBUG_PRINT) && DEBUG_PRINT
void mp_map_dump(mp_map_t *map) {
for (size_t i = 0; i < map->alloc; i++) {
- if (map->table[i].key != NULL) {
+ if (map->table[i].key != MP_OBJ_NULL) {
mp_obj_print(map->table[i].key, PRINT_REPR);
} else {
- printf("(nil)");
+ DEBUG_printf("(nil)");
}
- printf(": %p\n", map->table[i].value);
+ DEBUG_printf(": %p\n", map->table[i].value);
}
- printf("---\n");
+ DEBUG_printf("---\n");
}
#endif