X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-syscall-events%2Fgen-syscall-events.cpp;h=726fbc8ed0805e280115ab9e5b31dd6ae4513db4;hb=HEAD;hp=6a246867d39c824422e0db778ecdf85ef46528fc;hpb=729c1fec5976af17fded2f026725a08ef1924290;p=lttng-tools.git 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 6a246867d..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; }