From: José Bollo Date: Wed, 4 Jul 2018 13:58:02 +0000 (+0200) Subject: afb-trace: Fix bug in tracing of afb_req_get_client_info X-Git-Tag: 5.99.2~33 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=commitdiff_plain;h=425458b99b65ada911c21ba1896a5733541e5170 afb-trace: Fix bug in tracing of afb_req_get_client_info 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 --- diff --git a/coverage/scripts/02-hello.sh b/coverage/scripts/02-hello.sh index 916892f7..579a3f06 100755 --- a/coverage/scripts/02-hello.sh +++ b/coverage/scripts/02-hello.sh @@ -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 diff --git a/src/afb-trace.c b/src/afb-trace.c index 5f54b174..0e285e14 100644 --- a/src/afb-trace.c +++ b/src/afb-trace.c @@ -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); }