From d914eb068ce1b66c66b134a4c6203236b014b34d Mon Sep 17 00:00:00 2001 From: Denis Shreiber Date: Sun, 2 Oct 2022 21:07:21 +0700 Subject: [PATCH] Remove warning on build when FDB_KV_AUTO_UPDATE is defined (#181) --- src/fdb_kvdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fdb_kvdb.c b/src/fdb_kvdb.c index dea362e..f633525 100644 --- a/src/fdb_kvdb.c +++ b/src/fdb_kvdb.c @@ -1404,7 +1404,7 @@ static void kv_auto_update(fdb_kvdb_t db) /* check version number */ if (saved_ver_num != setting_ver_num) { size_t i, value_len; - FDB_DEBUG("Update the KV from version %u to %u.\n", (uint32_t)saved_ver_num, (uint32_t)setting_ver_num); + FDB_DEBUG("Update the KV from version %zu to %zu.\n", saved_ver_num, setting_ver_num); for (i = 0; i < db->default_kvs.num; i++) { /* add a new KV when it's not found */ if (!find_kv(db, db->default_kvs.kvs[i].key, &db->cur_kv)) {