From ea11654e684cb91252487f697c72e76da507f7be Mon Sep 17 00:00:00 2001 From: Dan Egnor Date: Tue, 26 Jan 2010 17:04:26 -0800 Subject: Use six dashes instead of five. --- cmds/dumpstate/dumpstate.c | 2 +- cmds/dumpstate/utils.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'cmds') diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c index 9300915..78f90a1 100644 --- a/cmds/dumpstate/dumpstate.c +++ b/cmds/dumpstate/dumpstate.c @@ -129,7 +129,7 @@ static void dumpstate() { dump_file("LAST PANIC CONSOLE", "/data/dontpanic/apanic_console"); dump_file("LAST PANIC THREADS", "/data/dontpanic/apanic_threads"); - printf("----- BACKLIGHTS -----\n"); + printf("------ BACKLIGHTS ------\n"); printf("LCD brightness="); dump_file(NULL, "/sys/class/leds/lcd-backlight/brightness"); printf("Button brightness="); diff --git a/cmds/dumpstate/utils.c b/cmds/dumpstate/utils.c index fda618c..39e14e4 100644 --- a/cmds/dumpstate/utils.c +++ b/cmds/dumpstate/utils.c @@ -43,13 +43,13 @@ int dump_file(const char *title, const char* path) { int fd = open(path, O_RDONLY); if (fd < 0) { int err = errno; - if (title) printf("----- %s (%s) -----\n", title, path); + if (title) printf("------ %s (%s) ------\n", title, path); printf("*** %s: %s\n", path, strerror(err)); if (title) printf("\n"); return -1; } - if (title) printf("----- %s (%s", title, path); + if (title) printf("------ %s (%s", title, path); if (title) { struct stat st; @@ -59,7 +59,7 @@ int dump_file(const char *title, const char* path) { strftime(stamp, sizeof(stamp), "%Y-%m-%d %H:%M:%S", localtime(&mtime)); printf(": %s", stamp); } - printf(") -----\n"); + printf(") ------\n"); } int newline = 0; @@ -97,13 +97,13 @@ int run_command(const char *title, int timeout_seconds, const char *command, ... va_list ap; va_start(ap, command); - if (title) printf("----- %s (%s", title, command); + if (title) printf("------ %s (%s", title, command); for (arg = 1; arg < sizeof(args) / sizeof(args[0]); ++arg) { args[arg] = va_arg(ap, const char *); if (args[arg] == NULL) break; if (title) printf(" %s", args[arg]); } - if (title) printf(") -----\n"); + if (title) printf(") ------\n"); fflush(stdout); execvp(command, (char**) args); @@ -159,7 +159,7 @@ void print_properties() { property_list(print_prop, NULL); qsort(&props, num_props, sizeof(props[0]), compare_prop); - printf("----- SYSTEM PROPERTIES -----\n"); + printf("------ SYSTEM PROPERTIES ------\n"); for (i = 0; i < num_props; ++i) { fputs(props[i], stdout); free(props[i]); -- cgit v1.1