NVS data storage: Improve logging

This commit is contained in:
Martin Jäger
2021-03-17 13:19:19 +01:00
parent d2b4eb7f7e
commit b2707067ac
+2 -2
View File
@@ -202,7 +202,7 @@ void data_storage_read()
int num_bytes = nvs_read(&fs, THINGSET_DATA_ID, &buf, sizeof(buf));
if (num_bytes < 0) {
LOG_ERR("NVS read error %d", num_bytes);
LOG_INF("NVS empty (read error %d)", num_bytes);
return;
}
@@ -218,7 +218,7 @@ void data_storage_read()
k_mutex_unlock(&data_buf_lock);
}
else {
LOG_INF("EEPROM empty or data layout version changed");
LOG_INF("NVS data layout version changed");
}
}