mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 14:20:06 -06:00
Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 6.0. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
32 lines
730 B
C
32 lines
730 B
C
#include <assert.h>
|
|
#include <lttng/ust-version.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
#ifdef CMAKE_LTTNGUST_HAS_TRACEF
|
|
# include <lttng/tracef.h>
|
|
#endif
|
|
|
|
#ifdef CMAKE_LTTNGUST_HAS_TRACELOG
|
|
# include <lttng/tracelog.h>
|
|
#endif
|
|
|
|
int main(void)
|
|
{
|
|
char lttng_version_string[16];
|
|
|
|
snprintf(lttng_version_string, 16, "%u.%u.%u", LTTNG_UST_MAJOR_VERSION,
|
|
LTTNG_UST_MINOR_VERSION, LTTNG_UST_PATCHLEVEL_VERSION);
|
|
assert(!strcmp(lttng_version_string, CMAKE_EXPECTED_LTTNGUST_VERSION));
|
|
|
|
#ifdef CMAKE_LTTNGUST_HAS_TRACEF
|
|
tracef("calling tracef()! %d %s", -23, CMAKE_EXPECTED_LTTNGUST_VERSION);
|
|
#endif
|
|
|
|
#ifdef CMAKE_LTTNGUST_HAS_TRACELOG
|
|
tracelog(TRACE_WARNING, "calling tracelog()! %d", 17);
|
|
#endif
|
|
|
|
return 0;
|
|
}
|