diff --git a/src/fdb_kvdb.c b/src/fdb_kvdb.c index 7ccac88..a1118ce 100644 --- a/src/fdb_kvdb.c +++ b/src/fdb_kvdb.c @@ -1071,12 +1071,12 @@ static uint32_t new_kv(fdb_kvdb_t db, kv_sec_info_t sector, size_t kv_size) if ((empty_kv = alloc_kv(db, sector, kv_size)) == FAILED_ADDR) { if (db->gc_request && !already_gc) { - FDB_DEBUG("Warning: Alloc an KV (size %" PRIu32 ") failed when new KV. Now will GC then retry.\n", (uint32_t)kv_size); + FDB_INFO("Warning: Alloc an KV (size %" PRIu32 ") failed when new KV. Now will GC then retry.\n", (uint32_t)kv_size); gc_collect_by_free_size(db, kv_size); already_gc = true; goto __retry; } else if (already_gc) { - FDB_DEBUG("Error: Alloc an KV (size %" PRIuLEAST16 ") failed after GC. KV full.\n", kv_size); + FDB_INFO("Error: Alloc an KV (size %" PRIuLEAST16 ") failed after GC. KV full.\n", kv_size); db->gc_request = false; } } @@ -1120,7 +1120,7 @@ static bool do_gc(kv_sec_info_t sector, void *arg1, void *arg2) if (kv.crc_is_ok && (kv.status == FDB_KV_WRITE || kv.status == FDB_KV_PRE_DELETE)) { /* move the KV to new space */ if (move_kv(db, &kv) != FDB_NO_ERR) { - FDB_DEBUG("Error: Moved the KV (%.*s) for GC failed.\n", kv.name_len, kv.name); + FDB_INFO("Error: Moved the KV (%.*s) for GC failed.\n", kv.name_len, kv.name); } } } while ((kv.addr.start = get_next_kv_addr(db, sector, &kv)) != FAILED_ADDR);