]> granicus.if.org Git - strace/commitdiff
strace: move description of -k option to the appropriate place
authorJingPiao Chen <chenjingpiao@gmail.com>
Fri, 6 Jan 2017 07:16:27 +0000 (15:16 +0800)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 12 Jan 2017 22:46:28 +0000 (22:46 +0000)
Follow the example of strace.1 and put the description of -k option
into the  output format group.

* strace.c (usage): Move description of -k option to the output
format group.

strace.c

index 653009b5a3880c78b9b74983f264dd0cec1dd894..da6b165e1c9c8dac47886e8f162098821b92e6c5 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -209,6 +209,13 @@ usage: strace [-CdffhiqrtttTvVwxxy] [-I n] [-e expr]...\n\
 Output format:\n\
   -a column      alignment COLUMN for printing syscall results (default %d)\n\
   -i             print instruction pointer at time of syscall\n\
+"
+#ifdef USE_LIBUNWIND
+"\
+  -k             obtain stack trace between each syscall (experimental)\n\
+"
+#endif
+"\
   -o file        send trace output to FILE instead of stderr\n\
   -q             suppress messages about attaching, detaching, etc.\n\
   -r             print relative timestamp\n\
@@ -257,10 +264,6 @@ Miscellaneous:\n\
   -h             print help message\n\
   -V             print version\n\
 "
-#ifdef USE_LIBUNWIND
-"  -k             obtain stack trace between each syscall (experimental)\n\
-"
-#endif
 /* ancient, no one should use it
 -F -- attempt to follow vforks (deprecated, use -f)\n\
  */