Catching up on misc. string and comment fixes
authorThibault, Daniel <Daniel.Thibault@drdc-rddc.gc.ca>
Mon, 30 Jan 2012 20:27:16 +0000 (15:27 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 30 Jan 2012 21:00:09 +0000 (16:00 -0500)
Signed-off-by: Daniel U. Thibault <daniel.thibault@drdc-rddc.gc.ca>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-consumerd/lttng-consumerd.c
src/bin/lttng-sessiond/main.c
src/bin/lttng/lttng.c

index 5d1ad06829f3539cd9619d27467c89580dbe569a..7e3bf3cfbad8c99976cd5b1e8813ad2adfa882a5 100644 (file)
@@ -49,7 +49,7 @@
 
 #include "lttng-consumerd.h"
 
-/* TODO : support UST (all direct kern-ctl accesses). */
+/* TODO : support UST (all direct kernel-ctl accesses). */
 
 /* the two threads (receive fd and poll) */
 static pthread_t threads[2];
@@ -310,7 +310,7 @@ int main(int argc, char **argv)
        ret = lttcomm_connect_unix_sock(error_sock_path);
        /* not a fatal error, but all communication with lttng-sessiond will fail */
        if (ret < 0) {
-               WARN("Cannot connect to error socket (is lttng-sessiond started ?)");
+               WARN("Cannot connect to error socket (is lttng-sessiond started?)");
        }
        lttng_consumer_set_error_sock(ctx, ret);
 
index 9b2d1fe0079c91753877dec1ca724466187ac9f3..8304de8be394ca034f0726f622fdebe865c7c5df 100644 (file)
@@ -314,7 +314,7 @@ error:
 static void teardown_kernel_session(struct ltt_session *session)
 {
        if (!session->kernel_session) {
-               DBG3("No kernel session when tearingdown session");
+               DBG3("No kernel session when tearing down session");
                return;
        }
 
@@ -340,7 +340,7 @@ static void teardown_ust_session(struct ltt_session *session)
        int ret;
 
        if (!session->ust_session) {
-               DBG3("No UST session when tearingdown session");
+               DBG3("No UST session when tearing down session");
                return;
        }
 
@@ -397,7 +397,7 @@ static void cleanup(void)
        }
        free(cmd);
 
-       DBG("Cleaning up all session");
+       DBG("Cleaning up all sessions");
 
        /* Destroy session list mutex */
        if (session_list_ptr != NULL) {
index 31b4714db11ae59f4a8ad0d104bbebecb58d0bba..71ef7ed05ef93846aa21054b00de4f21b821a561 100644 (file)
@@ -85,14 +85,14 @@ static void usage(FILE *ofp)
        fprintf(ofp, "usage: lttng [OPTIONS] <COMMAND>\n");
        fprintf(ofp, "\n");
        fprintf(ofp, "Options:\n");
-       fprintf(ofp, "  -h, --help             Show this help\n");
-       fprintf(ofp, "      --list-options     Simple listing of lttng options\n");
-       fprintf(ofp, "      --list-commands    Simple listing of lttng commands\n");
-       fprintf(ofp, "  -v, --verbose          Increase verbosity\n");
-       fprintf(ofp, "  -q, --quiet            Quiet mode\n");
-       fprintf(ofp, "  -g, --group NAME       Unix tracing group name. (default: tracing)\n");
-       fprintf(ofp, "  -n, --no-sessiond      Don't spawn a session daemon\n");
-       fprintf(ofp, "      --sessiond-path    Session daemon full path\n");
+       fprintf(ofp, "  -h, --help                 Show this help\n");
+       fprintf(ofp, "      --list-options         Simple listing of lttng options\n");
+       fprintf(ofp, "      --list-commands        Simple listing of lttng commands\n");
+       fprintf(ofp, "  -v, --verbose              Increase verbosity\n");
+       fprintf(ofp, "  -q, --quiet                Quiet mode\n");
+       fprintf(ofp, "  -g, --group NAME           Unix tracing group name. (default: tracing)\n");
+       fprintf(ofp, "  -n, --no-sessiond          Don't spawn a session daemon\n");
+       fprintf(ofp, "      --sessiond-path PATH   Session daemon full path\n");
        fprintf(ofp, "\n");
        fprintf(ofp, "Commands:\n");
        fprintf(ofp, "    add-context     Add context to event and/or channel\n");
@@ -109,6 +109,8 @@ static void usage(FILE *ofp)
        fprintf(ofp, "    stop            Stop tracing\n");
        fprintf(ofp, "    version         Show version information\n");
        fprintf(ofp, "\n");
+       fprintf(ofp, "Each command also has its own -h, --help option.\n");
+       fprintf(ofp, "\n");
        fprintf(ofp, "Please see the lttng(1) man page for full documentation.\n");
        fprintf(ofp, "See http://lttng.org for updates, bug reports and news.\n");
 }
@@ -176,11 +178,11 @@ static void sighandler(int sig)
 
        switch (sig) {
                case SIGTERM:
-                       DBG("SIGTERM caugth");
+                       DBG("SIGTERM caught");
                        clean_exit(EXIT_FAILURE);
                        break;
                case SIGCHLD:
-                       DBG("SIGCHLD caugth");
+                       DBG("SIGCHLD caught");
                        waitpid(sessiond_pid, &status, 0);
                        recv_child_signal = 1;
                        /* Indicate that the session daemon died */
@@ -190,10 +192,10 @@ static void sighandler(int sig)
                case SIGUSR1:
                        /* Notify is done */
                        recv_child_signal = 1;
-                       DBG("SIGUSR1 caugth");
+                       DBG("SIGUSR1 caught");
                        break;
                default:
-                       DBG("Unknown signal %d caugth", sig);
+                       DBG("Unknown signal %d caught", sig);
                        break;
        }
 
@@ -514,7 +516,7 @@ int main(int argc, char *argv[])
 
        progname = argv[0] ? argv[0] : "lttng";
 
-       /* For Mathieu Desnoyers aka Dr Tracing */
+       /* For Mathieu Desnoyers a.k.a. Dr. Tracing */
        if (strncmp(progname, "drtrace", 7) == 0 ||
                        strncmp("compudj", getenv("USER"), 7) == 0) {
                MSG("%c[%d;%dmWelcome back Dr Tracing!%c[%dm\n", 27,1,33,27,0);
This page took 0.030416 seconds and 4 git commands to generate.