From: Jérémie Galarneau Date: Wed, 16 Oct 2019 22:25:57 +0000 (-0400) Subject: common: cleanup error message mentioning mkdir X-Git-Tag: v2.12.0-rc1~305 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=d186e4cbbca201936132f3b6aad1710e35dec373;ds=sidebyside common: cleanup error message mentioning mkdir While there is a good chance that mkdir is the actual syscall that fails when this error code is returned, the error messages should describe the operation that failed and not its implementation. Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/error.c b/src/common/error.c index 2e4993fef..66fd8642f 100644 --- a/src/common/error.c +++ b/src/common/error.c @@ -210,7 +210,7 @@ static const char *error_string_array[] = { [ ERROR_INDEX(LTTNG_ERR_ROTATE_RENAME_FAIL_CONSUMER) ] = "Rotation rename failure on consumer", [ ERROR_INDEX(LTTNG_ERR_ROTATION_PENDING_LOCAL_FAIL_CONSUMER) ] = "Rotation pending check (local) failure on consumer", [ ERROR_INDEX(LTTNG_ERR_ROTATION_PENDING_RELAY_FAIL_CONSUMER) ] = "Rotation pending check (relay) failure on consumer", - [ ERROR_INDEX(LTTNG_ERR_MKDIR_FAIL_CONSUMER) ] = "mkdir failure on consumer", + [ ERROR_INDEX(LTTNG_ERR_MKDIR_FAIL_CONSUMER) ] = "Directory creation failure on consumer", [ ERROR_INDEX(LTTNG_ERR_CHAN_NOT_FOUND) ] = "Channel not found", [ ERROR_INDEX(LTTNG_ERR_SNAPSHOT_UNSUPPORTED) ] = "Session configuration does not allow the use of snapshots", [ ERROR_INDEX(LTTNG_ERR_SESSION_NOT_EXIST) ] = "Tracing session does not exist",