From 7d8829fd67c56102436f3e1e16d652f23076ed86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 3 Mar 2016 16:50:42 -0500 Subject: [PATCH] Add new LTTNG_ERR_OVERFLOW error code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- include/lttng/lttng-error.h | 1 + src/common/error.c | 1 + 2 files changed, 2 insertions(+) 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" -- 2.34.1