chip/host/persistence.c: Format with clang-format
BRANCH=none
TEST=none
@@ -60,9 +60,8 @@ static void get_storage_path(char *out)
current = strchr(current, '/');
}
-
- sz = snprintf(out, PATH_MAX - 1, "/dev/shm/EC_persist_%.*s",
- max_len, buf);
+ sz = snprintf(out, PATH_MAX - 1, "/dev/shm/EC_persist_%.*s", max_len,
+ buf);
out[PATH_MAX - 1] = '\0';
ASSERT(sz <= max_len + max_prefix_len);
@@ -81,8 +80,8 @@ FILE *get_persistent_storage(const char *tag, const char *mode)
* be named 'bar_persist_foo'
*/
get_storage_path(buf);
- snprintf(path, PATH_MAX - 1, "%.*s_%32s",
- max_len + max_prefix_len, buf, tag);
+ snprintf(path, PATH_MAX - 1, "%.*s_%32s", max_len + max_prefix_len, buf,
+ tag);
path[PATH_MAX - 1] = '\0';
return fopen(path, mode);
@@ -102,8 +101,8 @@ void remove_persistent_storage(const char *tag)
ASSERT(strlen(tag) < 32);
get_storage_path(buf);
- snprintf(path, PATH_MAX - 1, "%.*s_%32s",
- max_len + max_prefix_len, buf, tag);
+ snprintf(path, PATH_MAX - 1, "%.*s_%32s", max_len + max_prefix_len, buf,
+ tag);
path[PATH_MAX - 1] = '\0';
unlink(path);
