From: Jérémie Galarneau Date: Thu, 3 Mar 2016 21:50:42 +0000 (-0500) Subject: Add new LTTNG_ERR_OVERFLOW error code X-Git-Tag: v2.8.0-rc1~127 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7d8829fd67c56102436f3e1e16d652f23076ed86;p=lttng-tools.git Add new LTTNG_ERR_OVERFLOW error code Signed-off-by: Jérémie Galarneau --- diff --git a/include/lttng/lttng-error.h b/include/lttng/lttng-error.h index 65ec20572..1030bdfc3 100644 --- a/include/lttng/lttng-error.h +++ b/include/lttng/lttng-error.h @@ -137,6 +137,7 @@ enum lttng_error_code { LTTNG_ERR_PID_TRACKED = 114, /* PID already tracked */ LTTNG_ERR_PID_NOT_TRACKED = 115, /* PID not tracked */ LTTNG_ERR_INVALID_CHANNEL_DOMAIN = 116, /* Invalid channel domain */ + LTTNG_ERR_OVERFLOW = 117, /* Overflow occured. */ /* MUST be last element */ LTTNG_ERR_NR, /* Last element */ diff --git a/src/common/error.c b/src/common/error.c index 23ee1b5ef..c3fde51d4 100644 --- a/src/common/error.c +++ b/src/common/error.c @@ -169,6 +169,7 @@ static const char *error_string_array[] = { [ ERROR_INDEX(LTTNG_ERR_PID_TRACKED) ] = "PID already tracked", [ ERROR_INDEX(LTTNG_ERR_PID_NOT_TRACKED) ] = "PID not tracked", [ ERROR_INDEX(LTTNG_ERR_INVALID_CHANNEL_DOMAIN) ] = "Invalid channel domain", + [ ERROR_INDEX(LTTNG_ERR_OVERFLOW) ] = "Overflow occured", /* Last element */ [ ERROR_INDEX(LTTNG_ERR_NR) ] = "Unknown error code"