Remove inappropriate \n from easy-ust sample
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 25 Mar 2012 23:52:07 +0000 (19:52 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 25 Mar 2012 23:52:07 +0000 (19:52 -0400)
Although \n is permitted in strings, it adds newlines in the trace
pretty-printer output, which is not that nice.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/easy-ust/sample.c

index 6b5ee630e87b52a7aaee54f9d4091bab9cfe6661..ddc4de699f791489ec48f4b52b11ea8e18a33e1b 100644 (file)
@@ -27,7 +27,7 @@ int main(int argc, char **argv)
        int i = 0;
 
        for (i = 0; i < 100000; i++) {
-               tracepoint(sample_component, message, "Hello World\n");
+               tracepoint(sample_component, message, "Hello World");
                usleep(1);
        }
        return 0;
This page took 0.024804 seconds and 4 git commands to generate.