X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Futils%2Futils.h;h=87b4918def3a9960a230b4ace04ad71b56007128;hb=7d46777ba0eaba7916ae822a7133f39740cdf9e5;hp=8f04413c6183385740f0b104967de21c4e4ddcde;hpb=3fd0ee48d1539bf5b957bed8893d0ba375fde823;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