afb-req: Fix a bug in afb_req_verbose 03/15003/1
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 4 Jul 2018 10:23:43 +0000 (12:23 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Wed, 4 Jul 2018 14:55:43 +0000 (16:55 +0200)
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>
coverage/scripts/02-hello.sh
include/afb/afb-req-x2.h

index fbbb307..916892f 100755 (executable)
@@ -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
 
index bd4bc76..4ae1af7 100644 (file)
@@ -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);
 }