.gitignore: ignore local vscode workspace settings file
[lttng-tools.git] / tests / regression / ust / linking / demo.c
index a02ee80204a02e61a4a07dc57fd5cded806e85d9..43b0f641c4f4c8713806b55b822aca8768aa005c 100644 (file)
@@ -1,37 +1,26 @@
 /*
- * Copyright (C) 2009  Pierre-Marc Fournier
- * Copyright (C) 2011  Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright (C) 2009 Pierre-Marc Fournier
+ * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; version 2.1 of
- * the License.
+ * SPDX-License-Identifier: LGPL-2.1-only
  *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#include <stdio.h>
-#include <unistd.h>
-#include <sys/mman.h>
-#include <stdarg.h>
-#include <sys/types.h>
-#include <sys/stat.h>
+#include <arpa/inet.h>
 #include <fcntl.h>
 #include <signal.h>
-#include <string.h>
-#include <arpa/inet.h>
+#include <stdarg.h>
+#include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
+#include <sys/mman.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <unistd.h>
 
 #define TRACEPOINT_DEFINE
 
-#if TEST_DYNAMIC_LINKAGE
+#ifdef TEST_DYNAMIC_LINKAGE
 #define TRACEPOINT_PROBE_DYNAMIC_LINKAGE
 #endif
 
@@ -59,8 +48,7 @@ int main(int argc, char **argv)
        tracepoint(ust_tests_demo, starting, 123);
        for (i = 0; i < 5; i++) {
                netint = htonl(i);
-               tracepoint(ust_tests_demo2, loop, i, netint, values,
-                          text, strlen(text), dbl, flt);
+               tracepoint(ust_tests_demo2, loop, i, netint, values, text, strlen(text), dbl, flt);
        }
        tracepoint(ust_tests_demo, done, 456);
        tracepoint(ust_tests_demo3, done, 42);
This page took 0.024552 seconds and 4 git commands to generate.