X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils%2Futils.h;h=87b4918def3a9960a230b4ace04ad71b56007128;hb=28f23191dcbf047429d51950a337a57d7a3f866a;hp=8f04413c6183385740f0b104967de21c4e4ddcde;hpb=f250b40e2179eccdb83766bf4abef5a35036c47b;p=lttng-tools.git diff --git a/tests/utils/utils.h b/tests/utils/utils.h index 8f04413c6..87b4918de 100644 --- a/tests/utils/utils.h +++ b/tests/utils/utils.h @@ -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