projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix erroneous warning/error messages
[babeltrace.git]
/
lib
/
context.c
diff --git
a/lib/context.c
b/lib/context.c
index 9c1159860ebc7a0d7af512f0ede5cc5250cdb154..5516e494f2bbb74c68be2a7924e2fa091935cf3e 100644
(file)
--- a/
lib/context.c
+++ b/
lib/context.c
@@
-90,16
+90,16
@@
int bt_context_add_trace(struct bt_context *ctx, const char *path,
if (path) {
td = fmt->open_trace(path, O_RDONLY, packet_seek, NULL);
if (!td) {
if (path) {
td = fmt->open_trace(path, O_RDONLY, packet_seek, NULL);
if (!td) {
- fprintf(stderr, "[warning] [Context] Cannot open_trace of
the format %s
.\n\n",
- path);
+ fprintf(stderr, "[warning] [Context] Cannot open_trace of
format %s at path %s
.\n\n",
+
format_name,
path);
ret = -1;
goto end;
}
} else {
td = fmt->open_mmap_trace(stream_list, packet_seek, metadata);
if (!td) {
ret = -1;
goto end;
}
} else {
td = fmt->open_mmap_trace(stream_list, packet_seek, metadata);
if (!td) {
- fprintf(stderr, "[error] [Context] Cannot open_
trace of the format %s
.\n\n",
-
path
);
+ fprintf(stderr, "[error] [Context] Cannot open_
mmap_trace of format %s
.\n\n",
+
format_name
);
ret = -1;
goto end;
}
ret = -1;
goto end;
}
This page took
0.03441 seconds
and
4
git commands to generate.