Lines Matching refs:prefix
217 _cleanup_free_ char *path = NULL, *prefix = NULL, *suffix = NULL; in acquire_boot_count_path() local
248 prefix = strndup(path, e - path); in acquire_boot_count_path()
249 if (!prefix) in acquire_boot_count_path()
268 *ret_prefix = TAKE_PTR(prefix); in acquire_boot_count_path()
277 static int make_good(const char *prefix, const char *suffix, char **ret) { in make_good() argument
280 assert(prefix); in make_good()
288 good = strjoin(prefix, suffix); in make_good()
296 static int make_bad(const char *prefix, uint64_t done, const char *suffix, char **ret) { in make_bad() argument
299 assert(prefix); in make_bad()
307 bad = strjoin(prefix, "+0", suffix); in make_bad()
311 if (asprintf(&bad, "%s+0-%" PRIu64 "%s", prefix, done, suffix) < 0) in make_bad()
327 _cleanup_free_ char *path = NULL, *prefix = NULL, *suffix = NULL, *good = NULL, *bad = NULL; in verb_status() local
331 r = acquire_boot_count_path(&path, &prefix, &left, &done, &suffix); in verb_status()
343 r = make_good(prefix, suffix, &good); in verb_status()
347 r = make_bad(prefix, done, suffix, &bad); in verb_status()
402 …_cleanup_free_ char *path = NULL, *prefix = NULL, *suffix = NULL, *good = NULL, *bad = NULL, *pare… in verb_set() local
407 r = acquire_boot_count_path(&path, &prefix, NULL, &done, &suffix); in verb_set()
417 r = make_good(prefix, suffix, &good); in verb_set()
421 r = make_bad(prefix, done, suffix, &bad); in verb_set()