Lines Matching refs:suffix
217 _cleanup_free_ char *path = NULL, *prefix = NULL, *suffix = NULL; in acquire_boot_count_path() local
258 suffix = strdup(e); in acquire_boot_count_path()
259 if (!suffix) in acquire_boot_count_path()
262 *ret_suffix = TAKE_PTR(suffix); in acquire_boot_count_path()
277 static int make_good(const char *prefix, const char *suffix, char **ret) { in make_good() argument
281 assert(suffix); 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
300 assert(suffix); 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()