aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-02-16 23:11:47 -0500
committerSteven Rostedt <rostedt@goodmis.org>2010-02-16 23:11:47 -0500
commit03c370ca8b2f45fde8e8e56a59f481981b901780 (patch)
treeedc83277e11aea4e144b6c591c98a01e230cb2ee
parent40abb355ed1a82514f698c1ae6df4b74ba0b4011 (diff)
trace-view: Add warning output if advance filter fails
Print reason filter fails. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--trace-view.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/trace-view.c b/trace-view.c
index 13fdb7e..052160f 100644
--- a/trace-view.c
+++ b/trace-view.c
@@ -444,6 +444,7 @@ void trace_view_adv_filter_callback(gboolean accept,
444 char *error_str; 444 char *error_str;
445 guint64 time; 445 guint64 time;
446 gint row; 446 gint row;
447 int ret;
447 448
448 if (!accept) 449 if (!accept)
449 return; 450 return;
@@ -458,7 +459,12 @@ void trace_view_adv_filter_callback(gboolean accept,
458 459
459 event_filter = trace_view_store_get_event_filter(store); 460 event_filter = trace_view_store_get_event_filter(store);
460 461
461 pevent_filter_add_filter_str(event_filter, text, &error_str); 462 ret = pevent_filter_add_filter_str(event_filter, text, &error_str);
463 if (ret < 0) {
464 warning("filter failed due to: %s", error_str);
465 free(error_str);
466 return;
467 }
462 468
463 /* Keep track of the currently selected row */ 469 /* Keep track of the currently selected row */
464 row = trace_view_get_selected_row(GTK_WIDGET(trace_tree)); 470 row = trace_view_get_selected_row(GTK_WIDGET(trace_tree));