summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2021-07-14 19:20:16 +0200
committerBenBE <BenBE@geshi.org>2021-07-15 06:57:24 +0200
commit68edf924349e10ed6a144d4d6f1d0ddcdfeb6d43 (patch)
treea61c4f7b0e9a7d88d00e93c5c8b311cb3f388f1d
parent0d85af28727255ae4203cf01d1d657dc0c8d4258 (diff)
Indentation of string arguments
-rw-r--r--CommandLine.c36
-rw-r--r--pcp/PCPDynamicMeter.c8
2 files changed, 22 insertions, 22 deletions
diff --git a/CommandLine.c b/CommandLine.c
index eebbd947..1b09230f 100644
--- a/CommandLine.c
+++ b/CommandLine.c
@@ -45,26 +45,26 @@ static void printVersionFlag(const char* name) {
static void printHelpFlag(const char* name) {
printf("%s " VERSION "\n"
- COPYRIGHT "\n"
- "Released under the GNU GPLv2.\n\n"
- "-C --no-color Use a monochrome color scheme\n"
- "-d --delay=DELAY Set the delay between updates, in tenths of seconds\n"
- "-F --filter=FILTER Show only the commands matching the given filter\n"
- "-h --help Print this help screen\n"
- "-H --highlight-changes[=DELAY] Highlight new and old processes\n"
- "-M --no-mouse Disable the mouse\n"
- "-p --pid=PID[,PID,PID...] Show only the given PIDs\n"
- " --readonly Disable all system and process changing features\n"
- "-s --sort-key=COLUMN Sort by COLUMN in list view (try --sort-key=help for a list)\n"
- "-t --tree Show the tree view (can be combined with -s)\n"
- "-u --user[=USERNAME] Show only processes for a given user (or $USER)\n"
- "-U --no-unicode Do not use unicode but plain ASCII\n"
- "-V --version Print version info\n", name);
+ COPYRIGHT "\n"
+ "Released under the GNU GPLv2.\n\n"
+ "-C --no-color Use a monochrome color scheme\n"
+ "-d --delay=DELAY Set the delay between updates, in tenths of seconds\n"
+ "-F --filter=FILTER Show only the commands matching the given filter\n"
+ "-h --help Print this help screen\n"
+ "-H --highlight-changes[=DELAY] Highlight new and old processes\n"
+ "-M --no-mouse Disable the mouse\n"
+ "-p --pid=PID[,PID,PID...] Show only the given PIDs\n"
+ " --readonly Disable all system and process changing features\n"
+ "-s --sort-key=COLUMN Sort by COLUMN in list view (try --sort-key=help for a list)\n"
+ "-t --tree Show the tree view (can be combined with -s)\n"
+ "-u --user[=USERNAME] Show only processes for a given user (or $USER)\n"
+ "-U --no-unicode Do not use unicode but plain ASCII\n"
+ "-V --version Print version info\n", name);
Platform_longOptionsUsage(name);
printf("\n"
- "Long options may be passed with a single dash.\n\n"
- "Press F1 inside %s for online help.\n"
- "See 'man %s' for more information.\n", name, name);
+ "Long options may be passed with a single dash.\n\n"
+ "Press F1 inside %s for online help.\n"
+ "See 'man %s' for more information.\n", name, name);
}
// ----------------------------------------
diff --git a/pcp/PCPDynamicMeter.c b/pcp/PCPDynamicMeter.c
index be558ab9..ffde2b4f 100644
--- a/pcp/PCPDynamicMeter.c
+++ b/pcp/PCPDynamicMeter.c
@@ -114,8 +114,8 @@ static bool PCPDynamicMeter_validateMeterName(char* key, const char* path, unsig
*end = '\0';
} else {
fprintf(stderr,
- "%s: no closing brace on meter name at %s line %u\n\"%s\"\n",
- pmGetProgname(), path, line, key);
+ "%s: no closing brace on meter name at %s line %u\n\"%s\"\n",
+ pmGetProgname(), path, line, key);
return false;
}
@@ -131,8 +131,8 @@ static bool PCPDynamicMeter_validateMeterName(char* key, const char* path, unsig
}
if (*p != '\0') { /* badness */
fprintf(stderr,
- "%s: invalid meter name at %s line %u\n\"%s\"\n",
- pmGetProgname(), path, line, key);
+ "%s: invalid meter name at %s line %u\n\"%s\"\n",
+ pmGetProgname(), path, line, key);
return false;
}
return true;