summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-06-18 18:06:15 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-07-10 23:59:55 +0200
commit1b76779ff424f942a89b1bef62d571781f5f159e (patch)
tree6af615e3bdbee72f46fa4dfb6009d4cfd78fd2ab /src/plugins
parent81c7dd2c3248f0df563c21b444441ef92067167f (diff)
Fixed bug in decoding args in trace/start
Change-Id: I3632f52afbfece80939ec5e2d9011c557894d18e Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/supervisor-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/supervisor-api.c b/src/plugins/supervisor-api.c
index bfe448c..50e4808 100644
--- a/src/plugins/supervisor-api.c
+++ b/src/plugins/supervisor-api.c
@@ -93,7 +93,7 @@ CTLP_CAPI(trace_start, source, argsJ, queryJ)
// User can ask to trace either
// a specific pid or an array of pids or a specific ws name
- if (wrap_json_unpack(queryJ, "{s:?i s:?o s:?s s:?s s:?s}",
+ if (wrap_json_unpack(queryJ, "{s:?i s:?o s:?s s:?s}",
"pid", &pid, "pids", &j_pids, "ws", &ws_name, "level", &level)) {
AFB_ReqFail(source->request, "Failed", "Error processing arguments.");
return ERROR;