afb-trace: Fix bug in tracing of afb_req_get_client_info 07/15007/1
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 4 Jul 2018 13:58:02 +0000 (15:58 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Wed, 4 Jul 2018 14:56:45 +0000 (16:56 +0200)
The utility wrap-json distinguishes o from O, the latest
increment the reference count, as expected.

Bug-AGL: SPEC-1563

Change-Id: I4490ac894059e47abf1e2474aab07249b862e985
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
coverage/scripts/02-hello.sh
src/afb-trace.c

index 916892f..579a3f0 100755 (executable)
@@ -44,10 +44,7 @@ hello setctxif "some-text-1"
 hello getctx 
 hello setctx "some-text-2"
 hello getctx
-#------------------------
-# TODO bug to be fixed!
-#hello info
-#------------------------
+hello info
 hello verbose {"level":2,"message":"hello"}
 EOC
 
index 5f54b17..0e285e1 100644 (file)
@@ -489,7 +489,7 @@ static void hook_xreq_get_uid(void *closure, const struct afb_hookid *hookid, co
 
 static void hook_xreq_get_client_info(void *closure, const struct afb_hookid *hookid, const struct afb_xreq *xreq, struct json_object *result)
 {
-       hook_xreq(closure, hookid, xreq, "get_client_info", "{so}",
+       hook_xreq(closure, hookid, xreq, "get_client_info", "{sO}",
                                        "result", result);
 }