X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ferror.c;h=62a813a3e9808f638307d864b4a6ee686189eb51;hp=e73cf17f6991f305e3dda64a873751dd37dd47fc;hb=90e535ef0d0433d31e805775f85e4d187b1cf82c;hpb=a187da1ab55a90f95fed8a29ed232b344f0d32b2 diff --git a/src/common/error.c b/src/common/error.c index e73cf17f6..62a813a3e 100644 --- a/src/common/error.c +++ b/src/common/error.c @@ -19,6 +19,7 @@ #include #include +#include #include "error.h" @@ -113,7 +114,7 @@ static const char *error_string_array[] = { * * These code MUST be negative in other to treat that as an error value. */ -__attribute__((visibility("hidden"))) +LTTNG_HIDDEN const char *error_get_str(int32_t code) { code = -code;