X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ferror.c;h=62a813a3e9808f638307d864b4a6ee686189eb51;hb=90e535ef0d0433d31e805775f85e4d187b1cf82c;hp=0a3b5b3e11b83050e3d9e6bf794dfe0e393badc0;hpb=a79d84dd6bf849361c34616ae9f60786c6a6bf20;p=lttng-tools.git diff --git a/src/common/error.c b/src/common/error.c index 0a3b5b3e1..62a813a3e 100644 --- a/src/common/error.c +++ b/src/common/error.c @@ -19,6 +19,7 @@ #include #include +#include #include "error.h" @@ -101,6 +102,7 @@ static const char *error_string_array[] = { [ ERROR_INDEX(LTTNG_ERR_NO_SESSIOND) ] = "No session daemon is available", [ ERROR_INDEX(LTTNG_ERR_SESSION_STARTED) ] = "Session is running", [ ERROR_INDEX(LTTNG_ERR_NOT_SUPPORTED) ] = "Operation not supported", + [ ERROR_INDEX(LTTNG_ERR_UST_EVENT_ENABLED) ] = "UST event already enabled", /* Last element */ [ ERROR_INDEX(LTTNG_ERR_NR) ] = "Unknown error code" @@ -112,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;