projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Run clang-format on the whole tree
[lttng-tools.git]
/
src
/
common
/
testpoint
/
testpoint.cpp
diff --git
a/src/common/testpoint/testpoint.cpp
b/src/common/testpoint/testpoint.cpp
index 4dfeadd81eb9aad643d31b5200f0d59e38e5e921..753b79594754c8e96875faec3ccfa0a7c6d5c72d 100644
(file)
--- a/
src/common/testpoint/testpoint.cpp
+++ b/
src/common/testpoint/testpoint.cpp
@@
-8,12
+8,12
@@
#ifndef NTESTPOINT
#define _LGPL_SOURCE
#ifndef NTESTPOINT
#define _LGPL_SOURCE
-#include <dlfcn.h> /* for dlsym */
+#include "testpoint.hpp"
+
+#include <dlfcn.h> /* for dlsym */
#include <stdlib.h> /* for getenv */
#include <string.h> /* for strncmp */
#include <stdlib.h> /* for getenv */
#include <string.h> /* for strncmp */
-#include "testpoint.hpp"
-
/* Environment variable used to enable the testpoints facilities. */
static const char *lttng_testpoint_env_var = "LTTNG_TESTPOINT_ENABLE";
/* Environment variable used to enable the testpoints facilities. */
static const char *lttng_testpoint_env_var = "LTTNG_TESTPOINT_ENABLE";
@@
-28,8
+28,7
@@
static void __attribute__((constructor)) lttng_testpoint_check(void)
char *testpoint_env_val = NULL;
testpoint_env_val = getenv(lttng_testpoint_env_var);
char *testpoint_env_val = NULL;
testpoint_env_val = getenv(lttng_testpoint_env_var);
- if (testpoint_env_val != NULL
- && (strncmp(testpoint_env_val, "1", 1) == 0)) {
+ if (testpoint_env_val != NULL && (strncmp(testpoint_env_val, "1", 1) == 0)) {
lttng_testpoint_activated = 1;
}
}
lttng_testpoint_activated = 1;
}
}
This page took
0.023098 seconds
and
4
git commands to generate.