X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-syscall-events%2Fgen-syscall-events.cpp;fp=tests%2Futils%2Ftestapp%2Fgen-syscall-events%2Fgen-syscall-events.cpp;h=726fbc8ed0805e280115ab9e5b31dd6ae4513db4;hp=9b19d2d2d6d5424866a388ede519700ea0de2793;hb=28ab034a2c3582d07d3423d2d746731f87d3969f;hpb=52e345b9ac912d033c2a2c25a170a01cf209839d diff --git a/tests/utils/testapp/gen-syscall-events/gen-syscall-events.cpp b/tests/utils/testapp/gen-syscall-events/gen-syscall-events.cpp index 9b19d2d2d..726fbc8ed 100644 --- a/tests/utils/testapp/gen-syscall-events/gen-syscall-events.cpp +++ b/tests/utils/testapp/gen-syscall-events/gen-syscall-events.cpp @@ -5,14 +5,15 @@ * */ +#include "utils.h" + +#include +#include + #include #include #include #include -#include -#include - -#include "utils.h" #define MAX_LEN 16 @@ -26,10 +27,9 @@ * This isn't a proper fix; it is simply the best we can do for now. * See bug #1261 for more context. */ -static -void prefault_string(const char *p) +static void prefault_string(const char *p) { - const char * const end = p + strlen(p) + 1; + const char *const end = p + strlen(p) + 1; while (p < end) { /* @@ -41,8 +41,7 @@ void prefault_string(const char *p) } } -static -int open_read_close(const char *path) +static int open_read_close(const char *path) { int fd, ret; char buf[MAX_LEN]; @@ -63,7 +62,9 @@ int open_read_close(const char *path) ret = syscall(SYS_read, fd, buf, MAX_LEN); if (ret < 0) { PERROR_NO_LOGGER("Failed to read file: path = '%s', fd = %d, length = %d", - path, fd, MAX_LEN); + path, + fd, + MAX_LEN); ret = -1; goto error; }