X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ftestpoint%2Ftestpoint.cpp;fp=src%2Fcommon%2Ftestpoint%2Ftestpoint.cpp;h=753b79594754c8e96875faec3ccfa0a7c6d5c72d;hp=4dfeadd81eb9aad643d31b5200f0d59e38e5e921;hb=28ab034a2c3582d07d3423d2d746731f87d3969f;hpb=52e345b9ac912d033c2a2c25a170a01cf209839d diff --git a/src/common/testpoint/testpoint.cpp b/src/common/testpoint/testpoint.cpp index 4dfeadd81..753b79594 100644 --- a/src/common/testpoint/testpoint.cpp +++ b/src/common/testpoint/testpoint.cpp @@ -8,12 +8,12 @@ #ifndef NTESTPOINT #define _LGPL_SOURCE -#include /* for dlsym */ +#include "testpoint.hpp" + +#include /* for dlsym */ #include /* for getenv */ #include /* for strncmp */ -#include "testpoint.hpp" - /* 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); - 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; } }