pw_kvs: Use PW_LOG_MODULE_NAME
Sets PW_LOG_MODULE_NAME in KVS source files that use logging to ensure
logs messages are attributed to this module.
Change-Id: Ia8386b26a8a1c775090a7831532c72e8ee9f313c
diff --git a/pw_kvs/entry.cc b/pw_kvs/entry.cc
index 9763ebf..c393253 100644
--- a/pw_kvs/entry.cc
+++ b/pw_kvs/entry.cc
@@ -12,6 +12,8 @@
// License for the specific language governing permissions and limitations under
// the License.
+#define PW_LOG_MODULE_NAME "KVS"
+
#include "pw_kvs/internal/entry.h"
#include <cinttypes>
diff --git a/pw_kvs/entry_cache.cc b/pw_kvs/entry_cache.cc
index 4528ab2..599ae80 100644
--- a/pw_kvs/entry_cache.cc
+++ b/pw_kvs/entry_cache.cc
@@ -12,6 +12,8 @@
// License for the specific language governing permissions and limitations under
// the License.
+#define PW_LOG_MODULE_NAME "KVS"
+
#include "pw_kvs/internal/entry_cache.h"
#include <cinttypes>
diff --git a/pw_kvs/flash_memory.cc b/pw_kvs/flash_memory.cc
index 71d9c14..f25ec68 100644
--- a/pw_kvs/flash_memory.cc
+++ b/pw_kvs/flash_memory.cc
@@ -12,6 +12,8 @@
// License for the specific language governing permissions and limitations under
// the License.
+#define PW_LOG_MODULE_NAME "KVS"
+
#include "pw_kvs/flash_memory.h"
#include <algorithm>
diff --git a/pw_kvs/flash_partition_with_stats.cc b/pw_kvs/flash_partition_with_stats.cc
index 7c9531d..25e60ad 100644
--- a/pw_kvs/flash_partition_with_stats.cc
+++ b/pw_kvs/flash_partition_with_stats.cc
@@ -12,6 +12,8 @@
// License for the specific language governing permissions and limitations under
// the License.
+#define PW_LOG_MODULE_NAME "KVS"
+
#include "pw_kvs/flash_partition_with_stats.h"
#include <cstdio>
diff --git a/pw_kvs/in_memory_fake_flash.cc b/pw_kvs/in_memory_fake_flash.cc
index 897e5db..d0e0c6b 100644
--- a/pw_kvs/in_memory_fake_flash.cc
+++ b/pw_kvs/in_memory_fake_flash.cc
@@ -12,6 +12,8 @@
// License for the specific language governing permissions and limitations under
// the License.
+#define PW_LOG_MODULE_NAME "KVS"
+
#include "pw_kvs/in_memory_fake_flash.h"
#include "pw_log/log.h"
diff --git a/pw_kvs/key_value_store.cc b/pw_kvs/key_value_store.cc
index 325ca16..80bb8cc 100644
--- a/pw_kvs/key_value_store.cc
+++ b/pw_kvs/key_value_store.cc
@@ -12,6 +12,8 @@
// License for the specific language governing permissions and limitations under
// the License.
+#define PW_LOG_MODULE_NAME "KVS"
+
#include "pw_kvs/key_value_store.h"
#include <algorithm>