From 0f5ecafbe3b3f999dc187d49ebeda6167967e995 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Tue, 18 Jul 2017 15:15:23 +0200 Subject: state: backend_bucket_circular: promote old state debug message to info A report about the changed on-storage state format might be interesting to the user. Signed-off-by: Philipp Zabel Signed-off-by: Lucas Stach --- common/state/backend_bucket_circular.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/state') diff --git a/common/state/backend_bucket_circular.c b/common/state/backend_bucket_circular.c index 7c81cdfaff..a4af32a759 100644 --- a/common/state/backend_bucket_circular.c +++ b/common/state/backend_bucket_circular.c @@ -246,7 +246,7 @@ static int state_backend_bucket_circular_read(struct state_backend_storage_bucke read_len = min(circ->write_area, (off_t)(circ->max_size - sizeof(struct state_backend_storage_bucket_circular_meta))); circ->write_area = 0; - dev_dbg(circ->dev, "Detected old on-storage format\n"); + dev_info(circ->dev, "Detected old on-storage format\n"); } else if (circ->last_written_length > circ->write_area || !IS_ALIGNED(circ->last_written_length, circ->writesize)) { circ->write_area = 0; -- cgit v1.2.3 From e19730531a167b65ffb1e3b497810dc5d1e30666 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Tue, 18 Jul 2017 15:15:34 +0200 Subject: state: backend_storage: remove unreachable error message This looks like a leftover. Signed-off-by: Philipp Zabel Signed-off-by: Lucas Stach --- common/state/backend_storage.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'common/state') diff --git a/common/state/backend_storage.c b/common/state/backend_storage.c index 3249d0bca6..e20fe5e566 100644 --- a/common/state/backend_storage.c +++ b/common/state/backend_storage.c @@ -393,8 +393,6 @@ int state_storage_init(struct state *state, const char *path, } else { return state_storage_file_buckets_init(storage); } - - dev_err(storage->dev, "storage init done\n"); } void state_storage_set_readonly(struct state_backend_storage *storage) -- cgit v1.2.3