X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ferror.c;h=d3e3b949dc59184609e7c403cb888357bfd6f7c9;hb=d3c04b7c1cbb447e82858125c64c4f69160d8023;hp=852de6fb4cf0c3fc7b0dc33c19164ced148c5be4;hpb=45d5d421f3464b541315509ecc2295be81b7139d;p=lttng-tools.git diff --git a/src/common/error.c b/src/common/error.c index 852de6fb4..d3e3b949d 100644 --- a/src/common/error.c +++ b/src/common/error.c @@ -16,6 +16,7 @@ */ #define _GNU_SOURCE +#define _LGPL_SOURCE #include #include @@ -165,6 +166,7 @@ static const char *error_string_array[] = { [ ERROR_INDEX(LTTNG_ERR_MI_IO_FAIL) ] = "IO error while writing MI output", [ ERROR_INDEX(LTTNG_ERR_MI_NOT_IMPLEMENTED) ] = "Mi feature not implemented", [ ERROR_INDEX(LTTNG_ERR_INVALID_EVENT_NAME) ] = "Invalid event name", + [ ERROR_INDEX(LTTNG_ERR_INVALID_CHANNEL_NAME) ] = "Invalid channel name", /* Last element */ [ ERROR_INDEX(LTTNG_ERR_NR) ] = "Unknown error code"