Lines Matching refs:prefix

181 static int print_record(sd_device *device, const char *prefix) {  in print_record()  argument
189 prefix = strempty(prefix); in print_record()
209 printf("%sP: %s%s%s\n", prefix, ansi_highlight_white(), str, ansi_normal()); in print_record()
212 printf("%sM: %s%s%s\n", prefix, ansi_highlight_white(), str, ansi_normal()); in print_record()
215 printf("%sR: %s%s%s\n", prefix, ansi_highlight_white(), str, ansi_normal()); in print_record()
218 printf("%sU: %s%s%s\n", prefix, ansi_highlight_green(), subsys, ansi_normal()); in print_record()
221 printf("%sT: %s%s%s\n", prefix, ansi_highlight_green(), str, ansi_normal()); in print_record()
225 prefix, in print_record()
231 printf("%sI: %s%i%s\n", prefix, ansi_highlight_cyan(), ifi, ansi_normal()); in print_record()
235 printf("%sN: %s%s%s\n", prefix, ansi_highlight_cyan(), val, ansi_normal()); in print_record()
238 printf("%sL: %s%i%s\n", prefix, ansi_highlight_cyan(), i, ansi_normal()); in print_record()
242 printf("%sS: %s%s%s\n", prefix, ansi_highlight_cyan(), val, ansi_normal()); in print_record()
247 … printf("%sQ: %s%" PRIu64 "%s\n", prefix, ansi_highlight_magenta(), q, ansi_normal()); in print_record()
250 printf("%sV: %s%s%s\n", prefix, ansi_highlight_yellow4(), str, ansi_normal()); in print_record()
253 printf("%sE: %s=%s\n", prefix, str, val); in print_record()
255 if (isempty(prefix)) in print_record()
260 static int stat_device(const char *name, bool export, const char *prefix) { in stat_device() argument
269 if (!prefix) in stat_device()
270 prefix = "INFO_"; in stat_device()
273 prefix, major(statbuf.st_dev), in stat_device()
274 prefix, minor(statbuf.st_dev)); in stat_device()
425 const char *devlink, *prefix = ""; in query_device() local
430 printf("%s%s", prefix, devlink); in query_device()
431 prefix = " "; in query_device()
508 const char *prefix,
514 const char *prefix, in output_tree_device() argument
524 prefix = strempty(prefix); in output_tree_device()
526 …printf("%s%s%s\n", prefix, special_glyph(more ? SPECIAL_GLYPH_TREE_BRANCH : SPECIAL_GLYPH_TREE_RIG… in output_tree_device()
528 …subprefix = strjoin(prefix, special_glyph(more ? SPECIAL_GLYPH_TREE_VERTICAL : SPECIAL_GLYPH_TREE_… in output_tree_device()
544 const char *prefix, in draw_tree() argument
597 r = output_tree_device(device, str, prefix, more, array + i + 1, j - i - 1, level); in draw_tree()
715 const char *prefix = c == 'n' ? "/dev/" : "/sys/"; in info_main() local
718 path = path_join(path_startswith(optarg, prefix) ? NULL : prefix, optarg); in info_main()