Fix: trace-chunk: log the cause of file open failures
[lttng-tools.git] / src / common / trace-chunk.c
index 20dbd0a5ea933a853d328332d4c04def960fd917..944743e0b585ba9458ba9e681aa974f80335fd56 100644 (file)
@@ -840,7 +840,7 @@ enum lttng_trace_chunk_status lttng_trace_chunk_open_file(
                        chunk->credentials.value.use_current_user ?
                                        NULL : &chunk->credentials.value.user);
        if (ret < 0) {
-               ERR("Failed to open file relative to trace chunk file_path = \"%s\", flags = %d, mode = %d",
+               PERROR("Failed to open file relative to trace chunk file_path = \"%s\", flags = %d, mode = %d",
                                file_path, flags, (int) mode);
                status = LTTNG_TRACE_CHUNK_STATUS_ERROR;
                goto end;
This page took 0.025861 seconds and 4 git commands to generate.