diff options
Diffstat (limited to 'simpletrace.c')
-rw-r--r-- | simpletrace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/simpletrace.c b/simpletrace.c index f849e42914..deb1e0742e 100644 --- a/simpletrace.c +++ b/simpletrace.c @@ -246,12 +246,14 @@ static TraceEvent* find_trace_event_by_name(const char *tname) return NULL; /* indicates end of list reached without a match */ } -void st_change_trace_event_state(const char *tname, bool tstate) +bool st_change_trace_event_state(const char *tname, bool tstate) { TraceEvent *tp; tp = find_trace_event_by_name(tname); if (tp) { tp->state = tstate; + return true; } + return false; } |