From 19cb25ed443c322f64c52b2cd544fee7c27fead4 Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Thu, 25 May 2017 15:55:37 -0400 Subject: [PATCH] fix: useless warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julien Desfossez Signed-off-by: Jérémie Galarneau --- plugins/lttng-utils/copy.c | 4 ---- plugins/lttng-utils/debug-info.c | 17 ----------------- 2 files changed, 21 deletions(-) diff --git a/plugins/lttng-utils/copy.c b/plugins/lttng-utils/copy.c index 385d55c4..33edc153 100644 --- a/plugins/lttng-utils/copy.c +++ b/plugins/lttng-utils/copy.c @@ -84,8 +84,6 @@ struct bt_ctf_field *get_stream_event_context_field(FILE *err, sec = bt_ctf_event_get_stream_event_context(event); if (!sec) { - fprintf(err, "[error] %s in %s:%d\n", __func__, - __FILE__, __LINE__); goto end; } @@ -121,8 +119,6 @@ int get_stream_event_context_unsigned_int_field_value(FILE *err, field = get_stream_event_context_field(err, event, field_name); if (!field) { - fprintf(err, "[error] %s in %s:%d\n", __func__, - __FILE__, __LINE__); goto error; } diff --git a/plugins/lttng-utils/debug-info.c b/plugins/lttng-utils/debug-info.c index bc8fa6dd..24e0a9f1 100644 --- a/plugins/lttng-utils/debug-info.c +++ b/plugins/lttng-utils/debug-info.c @@ -381,9 +381,6 @@ void handle_statedump_build_id_event(FILE *err, struct debug_info *debug_info, ret = get_stream_event_context_int_field_value(err, event, "_vpid", &vpid); if (ret) { - fprintf(err, "[error] %s in %s:%d\n", __func__, - __FILE__, __LINE__); - ret = -1; goto end; } @@ -392,7 +389,6 @@ void handle_statedump_build_id_event(FILE *err, struct debug_info *debug_info, if (ret) { fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__, __LINE__); - ret = -1; goto end; } @@ -417,7 +413,6 @@ void handle_statedump_build_id_event(FILE *err, struct debug_info *debug_info, if (ret) { fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__, __LINE__); - ret = -1; goto end; } @@ -451,9 +446,6 @@ void handle_statedump_debug_link_event(FILE *err, struct debug_info *debug_info, ret = get_stream_event_context_int_field_value(err, event, "_vpid", &vpid); if (ret) { - fprintf(err, "[error] %s in %s:%d\n", __func__, - __FILE__, __LINE__); - ret = -1; goto end; } @@ -569,9 +561,6 @@ void handle_bin_info_event(FILE *err, struct debug_info *debug_info, ret = get_stream_event_context_int_field_value(err, event, "_vpid", &vpid); if (ret) { - fprintf(err, "[error] %s in %s:%d\n", __func__, - __FILE__, __LINE__); - ret = -1; goto end; } @@ -656,9 +645,6 @@ void handle_lib_unload_event(FILE *err, struct debug_info *debug_info, ret = get_stream_event_context_int_field_value(err, event, "_vpid", &vpid); if (ret) { - fprintf(err, "[error] %s in %s:%d\n", __func__, - __FILE__, __LINE__); - ret = -1; goto end; } @@ -686,9 +672,6 @@ void handle_statedump_start(FILE *err, struct debug_info *debug_info, ret = get_stream_event_context_int_field_value(err, event, "_vpid", &vpid); if (ret) { - fprintf(err, "[error] %s in %s:%d\n", __func__, - __FILE__, __LINE__); - ret = -1; goto end; } -- 2.34.1