Update usage with using same whitespace and adding -r option 60/243260/3
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 4 Sep 2020 09:36:08 +0000 (18:36 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 7 Sep 2020 03:28:28 +0000 (12:28 +0900)
There were tabs in usage print, so usage shows different indent.
Use same whitespace for all the usage options. Also add missing
'-r' option explaination showing rss of all processes.

Change-Id: I58ad37f032914349ac90137624ec500f7760c709
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
memps.c

diff --git a/memps.c b/memps.c
index 49e7035..19c1ded 100644 (file)
--- a/memps.c
+++ b/memps.c
@@ -1369,10 +1369,11 @@ int main(int argc, char *argv[])
        }
        if (usage) {
                fprintf(stderr,
-                       "memps [-a] | [-v] | [-s] <pid> | [-f] <output file full path>\n"
-                       "        -s = sum (show only sum of each)\n"
-                       "        -f = all (show all processes via output file)\n"
+                       "memps [-a] | [-v] | [-r] | [-s] <pid> | <pid> | [-f] <output file full path>\n"
+                       "        -s = sum (show only sum of each)\n"
+                       "        -f = all (show all processes via output file)\n"
                        "        -a = all (show all processes)\n"
+                       "        -r = all (show rss of all processes)\n"
                        "        -v = verbos (show all processes in detail)\n");
        }