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.11.0~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5d86f201ff8ae68d28c230a37ba0bbbc2c3eab52;p=lttng-tools.git 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",