if (path) {
td = fmt->open_trace(path, O_RDONLY, packet_seek, NULL);
if (!td) {
- fprintf(stderr, "[error] [Context] Cannot open_trace of the format %s .\n\n",
+ fprintf(stderr, "[warning] [Context] Cannot open_trace of the format %s .\n\n",
path);
ret = -1;
goto end;
}
handle->format = fmt;
handle->td = td;
+ handle->timestamp_begin = fmt->timestamp_begin(td, handle);
+ handle->timestamp_end = fmt->timestamp_end(td, handle);
strncpy(handle->path, path, PATH_MAX);
handle->path[PATH_MAX - 1] = '\0';