X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Ferror.cpp;h=ab09053ccfb1465179139187069e73954a0b6f97;hb=28ab034a2c3582d07d3423d2d746731f87d3969f;hp=150d2e53fbfe75ef02517a766356eea7db809f7d;hpb=52e345b9ac912d033c2a2c25a170a01cf209839d;p=lttng-tools.git diff --git a/src/common/error.cpp b/src/common/error.cpp index 150d2e53f..ab09053cc 100644 --- a/src/common/error.cpp +++ b/src/common/error.cpp @@ -6,18 +6,19 @@ */ #define _LGPL_SOURCE -#include -#include -#include -#include +#include "error.hpp" #include -#include #include #include +#include + #include -#include "error.hpp" +#include +#include +#include +#include /* * lttng_opt_abort_on_error: unset: -1, disabled: 0, enabled: 1. @@ -49,9 +50,13 @@ const char *log_add_time(void) } /* Format time in the TLS variable. */ - ret = snprintf(URCU_TLS(error_log_time).str, sizeof(URCU_TLS(error_log_time).str), - "%02d:%02d:%02d.%09ld", - tm.tm_hour, tm.tm_min, tm.tm_sec, tp.tv_nsec); + ret = snprintf(URCU_TLS(error_log_time).str, + sizeof(URCU_TLS(error_log_time).str), + "%02d:%02d:%02d.%09ld", + tm.tm_hour, + tm.tm_min, + tm.tm_sec, + tp.tv_nsec); if (ret < 0) { goto error; } @@ -84,8 +89,7 @@ void logger_set_thread_name(const char *name, bool set_pthread_name) /* * Human readable error message. */ -static -const char *lttng_error_code_str(lttng_error_code code) +static const char *lttng_error_code_str(lttng_error_code code) { switch (code) { case LTTNG_OK: