From 0d575aeaf25cabe68e357dbdd218644631379800 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 6 Dec 2012 11:21:10 -0500 Subject: [PATCH] Fix erroneous warning/error messages This led to user confusion. Signed-off-by: Simon Marchi Signed-off-by: Mathieu Desnoyers --- lib/context.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/context.c b/lib/context.c index 9c115986..5516e494 100644 --- 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) { - 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) { - 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; } -- 2.34.1