X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ferror.c;h=938932cdc7b5cbd6ab03a1789cf9330712a8b5f2;hb=f0b03c2289d0f84c1e2dc41be70cd0bcc222e181;hp=d3d952a7de810d3ab0f52d19a8ee805ba2a9c236;hpb=c25613651ac7525a16b9877230a682fc1a64e036;p=lttng-tools.git diff --git a/src/common/error.c b/src/common/error.c index d3d952a7d..938932cdc 100644 --- a/src/common/error.c +++ b/src/common/error.c @@ -46,7 +46,7 @@ const char *log_add_time(void) struct timespec tp; time_t now; - ret = clock_gettime(CLOCK_REALTIME, &tp); + ret = lttng_clock_gettime(CLOCK_REALTIME, &tp); if (ret < 0) { goto error; } @@ -185,6 +185,7 @@ static const char *error_string_array[] = { [ ERROR_INDEX(LTTNG_ERR_KERN_CONTEXT_UNAVAILABLE) ] = "Context unavailable on this kernel", [ ERROR_INDEX(LTTNG_ERR_REGEN_STATEDUMP_FAIL) ] = "Failed to regenerate the state dump", [ ERROR_INDEX(LTTNG_ERR_REGEN_STATEDUMP_NOMEM) ] = "Failed to regenerate the state dump, not enough memory", + [ ERROR_INDEX(LTTNG_ERR_NOT_SNAPSHOT_SESSION) ] = "Snapshot command can't be applied to a non-snapshot session", /* Last element */ [ ERROR_INDEX(LTTNG_ERR_NR) ] = "Unknown error code"