From 272c6a17c172f26a8a6401703b1b46edb4b236e2 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 18 Jul 2013 10:17:24 -0400 Subject: [PATCH] Manpage: cleanup layout of disable-channel Signed-off-by: Mathieu Desnoyers --- doc/man/lttng.1 | 35 +++++++++++++---------- src/bin/lttng/commands/disable_channels.c | 2 +- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/doc/man/lttng.1 b/doc/man/lttng.1 index 6918cd5cd..96251b798 100644 --- a/doc/man/lttng.1 +++ b/doc/man/lttng.1 @@ -555,8 +555,9 @@ running applications can be found under columns "PID" and "LWP" of the .RE .PP -.IP "\fBdisable-channel\fP NAME[,NAME2,...] [\-k|\-u] [OPTIONS]" -.nf +.PP +\fBdisable-channel\fP NAME[,NAME2,...] (\-k | \-u) [OPTIONS] +.RS Disable tracing channel Disabling a channel makes all event(s) in that channel to stop tracing. You can @@ -564,22 +565,26 @@ enable it back by calling \fBlttng enable-channel NAME\fP again. If \fB\-s, \-\-session\fP is omitted, the session name is taken from the .lttngrc file. -.fi .B OPTIONS: -.nf -\-h, \-\-help - Show summary of possible options and commands. -\-\-list-options - Simple listing of options -\-s, \-\-session NAME - Apply on session name -\-k, \-\-kernel - Apply for the kernel tracer -\-u, \-\-userspace - Apply for the user-space tracer -.fi +.TP +.BR "\-h, \-\-help" +Show summary of possible options and commands. +.TP +.BR "\-\-list-options" +Simple listing of options +.TP +.BR "\-s, \-\-session NAME" +Apply on session name +.TP +.BR "\-k, \-\-kernel" +Apply for the kernel tracer +.TP +.BR "\-u, \-\-userspace" +Apply for the user-space tracer +.RE +.PP .IP "\fBdisable-event\fP NAME[,NAME2,...] [\-k|\-u] [OPTIONS]" .nf diff --git a/src/bin/lttng/commands/disable_channels.c b/src/bin/lttng/commands/disable_channels.c index d861b3770..50b132eeb 100644 --- a/src/bin/lttng/commands/disable_channels.c +++ b/src/bin/lttng/commands/disable_channels.c @@ -65,7 +65,7 @@ static struct poptOption long_options[] = { */ static void usage(FILE *ofp) { - fprintf(ofp, "usage: lttng disable-channel NAME[,NAME2,...] [-k|-u] [OPTIONS]\n"); + fprintf(ofp, "usage: lttng disable-channel NAME[,NAME2,...] (-k | -u) [OPTIONS]\n"); fprintf(ofp, "\n"); fprintf(ofp, "Options:\n"); fprintf(ofp, " -h, --help Show this help\n"); -- 2.34.1