aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-07-04 12:23:43 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-07-04 16:55:43 +0200
commiteb0abe2509bdcd923f12f471e7af4aa7f87909e1 (patch)
tree4aca1c87d1b4884bcdc411df2e49837c8398bf2e
parentc8dcf6ba5152ebc2650a35ed26329ac78efc9ed6 (diff)
afb-req: Fix a bug in afb_req_verbose
The newer version of afb_req_verbose was self recursive leading the crashes. Bug-AGL: SPEC-1561 Change-Id: I40959e5b72ca850712c27a505e77efea43aadabd Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rwxr-xr-xcoverage/scripts/02-hello.sh2
-rw-r--r--include/afb/afb-req-x2.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/coverage/scripts/02-hello.sh b/coverage/scripts/02-hello.sh
index fbbb307d..916892f7 100755
--- a/coverage/scripts/02-hello.sh
+++ b/coverage/scripts/02-hello.sh
@@ -47,7 +47,7 @@ hello getctx
#------------------------
# TODO bug to be fixed!
#hello info
-#hello verbose {"level":2,"message":"hello"}
#------------------------
+hello verbose {"level":2,"message":"hello"}
EOC
diff --git a/include/afb/afb-req-x2.h b/include/afb/afb-req-x2.h
index bd4bc767..4ae1af7b 100644
--- a/include/afb/afb-req-x2.h
+++ b/include/afb/afb-req-x2.h
@@ -642,7 +642,7 @@ void afb_req_x2_verbose(
{
va_list args;
va_start(args, fmt);
- afb_req_x2_verbose(req, level, file, line, func, fmt, args);
+ afb_req_x2_vverbose(req, level, file, line, func, fmt, args);
va_end(args);
}