X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ferror.c;h=0a3b5b3e11b83050e3d9e6bf794dfe0e393badc0;hb=cf3f19ae5f634bf07dcdb771e66d40f805700a17;hp=016027acdc7ef15a29bdd8a946fbbc97fc7af02b;hpb=f73fabfda365d22e7dd180fb1614e37c446fbd9e;p=lttng-tools.git diff --git a/src/common/error.c b/src/common/error.c index 016027acd..0a3b5b3e1 100644 --- a/src/common/error.c +++ b/src/common/error.c @@ -98,6 +98,9 @@ static const char *error_string_array[] = { [ ERROR_INDEX(LTTNG_ERR_FILTER_NOMEM) ] = "Not enough memory for filter bytecode", [ ERROR_INDEX(LTTNG_ERR_FILTER_EXIST) ] = "Filter already exist", [ 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", /* Last element */ [ ERROR_INDEX(LTTNG_ERR_NR) ] = "Unknown error code" @@ -109,6 +112,7 @@ static const char *error_string_array[] = { * * These code MUST be negative in other to treat that as an error value. */ +__attribute__((visibility("hidden"))) const char *error_get_str(int32_t code) { code = -code;