X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ferror.c;h=4fb022cc2948579da84bed73e6bab396536bb704;hp=4354cc3bbf6353bf30df4a9c7d9bb3e7a3a027b7;hb=7972aab22f74b18faa168c0482216a3dd711a075;hpb=806e2684ce24d3772af37ee46c5f0500c7a0723f diff --git a/src/common/error.c b/src/common/error.c index 4354cc3bb..4fb022cc2 100644 --- a/src/common/error.c +++ b/src/common/error.c @@ -19,6 +19,7 @@ #include #include +#include #include "error.h" @@ -100,6 +101,12 @@ static const char *error_string_array[] = { [ ERROR_INDEX(LTTNG_ERR_NO_CONSUMER) ] = "Consumer not found for tracing session", [ 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", + [ ERROR_INDEX(LTTNG_ERR_SET_URL) ] = "Error setting URL", + [ ERROR_INDEX(LTTNG_ERR_URL_EXIST) ] = "URL already exists", + [ ERROR_INDEX(LTTNG_ERR_BUFFER_NOT_SUPPORTED)] = "Buffer type not supported", + [ ERROR_INDEX(LTTNG_ERR_BUFFER_TYPE_MISMATCH)] = "Buffer type mismatch for session", /* Last element */ [ ERROR_INDEX(LTTNG_ERR_NR) ] = "Unknown error code" @@ -111,7 +118,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;