Clean-up: run format-cpp on the tree
[lttng-tools.git] / tests / utils / utils.h
index 8f04413c6183385740f0b104967de21c4e4ddcde..87b4918def3a9960a230b4ace04ad71b56007128 100644 (file)
@@ -14,7 +14,8 @@
 extern "C" {
 #endif
 
-#if !defined(__GLIBC__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
+#if !defined(__GLIBC__) || \
+       ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
 
 /*
  * Version using XSI strerror_r.
@@ -29,13 +30,12 @@ extern "C" {
 /*
  * Version using GNU strerror_r, for linux with appropriate defines.
  */
-#define PERROR_NO_LOGGER(msg, args...)                                    \
-       do {                                                              \
-               char *_perror_buf;                                        \
-               char _perror_tmp[200];                                    \
-               _perror_buf = strerror_r(                                 \
-                               errno, _perror_tmp, sizeof(_perror_tmp)); \
-               fprintf(stderr, msg ": %s\n", ##args, _perror_buf);       \
+#define PERROR_NO_LOGGER(msg, args...)                                             \
+       do {                                                                       \
+               char *_perror_buf;                                                 \
+               char _perror_tmp[200];                                             \
+               _perror_buf = strerror_r(errno, _perror_tmp, sizeof(_perror_tmp)); \
+               fprintf(stderr, msg ": %s\n", ##args, _perror_buf);                \
        } while (0);
 #endif
 
This page took 0.022867 seconds and 4 git commands to generate.