Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Burton2012-01-12 17:38:29 +0000
committerFelix Burton2012-01-12 17:38:29 +0000
commit08b2aa706152e235f4f82665bf84bb4abfb82b8c (patch)
treed783f70eb73ac201124bc2dc09e2b653182fbed7
parent4080c099bb61345589958a09ca49fd0fe2d60056 (diff)
downloadorg.eclipse.tcf.agent-08b2aa706152e235f4f82665bf84bb4abfb82b8c.tar.gz
org.eclipse.tcf.agent-08b2aa706152e235f4f82665bf84bb4abfb82b8c.tar.xz
org.eclipse.tcf.agent-08b2aa706152e235f4f82665bf84bb4abfb82b8c.zip
TCF Agent: fix return value from add_trace_mode() to return the assigned mode
-rw-r--r--agent/tcf/framework/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/tcf/framework/trace.c b/agent/tcf/framework/trace.c
index aca55bc4..5cc0dcd4 100644
--- a/agent/tcf/framework/trace.c
+++ b/agent/tcf/framework/trace.c
@@ -156,7 +156,7 @@ int add_trace_mode(int mode, const char * name, const char * description) {
trace_mode_table[i].mode = mode;
trace_mode_table[i].name = name;
trace_mode_table[i].description = description;
- return 0;
+ return mode;
}
busy |= trace_mode_table[i].mode;
}

Back to the top