]> git.proxmox.com Git - mirror_qemu.git/blobdiff - simpletrace.c
trace: print a warning if user tries to enable an unknown trace event
[mirror_qemu.git] / simpletrace.c
index f849e429145d3d193b86d6cd373428dd47ed0fb4..deb1e0742ecd1a35701ef461834330b4a22a3e08 100644 (file)
@@ -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;
 }