diff options
-rw-r--r-- | common/state/backend_storage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/state/backend_storage.c b/common/state/backend_storage.c index 8d24f7053d..3249d0bca6 100644 --- a/common/state/backend_storage.c +++ b/common/state/backend_storage.c @@ -368,7 +368,6 @@ int state_storage_init(struct state *state, const char *path, INIT_LIST_HEAD(&storage->buckets); storage->dev = &state->dev; - storage->name = storagetype; storage->stridesize = stridesize; storage->offset = offset; storage->max_size = max_size; @@ -380,8 +379,10 @@ int state_storage_init(struct state *state, const char *path, if (!ret && !(meminfo.flags & MTD_NO_ERASE)) { bool circular; if (!storagetype || !strcmp(storagetype, "circular")) { + storage->name = "circular"; circular = true; } else if (!strcmp(storagetype, "noncircular")) { + storage->name = "noncircular"; dev_warn(storage->dev, "using old format circular storage type.\n"); circular = false; } else { |