cleanup
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 26 Apr 2017 16:17:15 +0000 (18:17 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Wed, 26 Apr 2017 16:17:15 +0000 (18:17 +0200)
Change-Id: I6296e8d0897e3a1619d1ad832a27dcb9828eae99
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-ditf.c

index 9d65d30..fde9e04 100644 (file)
@@ -107,14 +107,11 @@ static void hooked_vverbose_cb(void *closure, int level, const char *file, int l
        struct afb_ditf *ditf = closure;
        vverbose_cb(closure, level, file, line, function, fmt, args);
        afb_hook_ditf_vverbose(ditf, level, file, line, function, fmt, args);
-       vverbose_cb(closure, level, file, line, function, fmt, args);
 }
 
 static void hooked_old_vverbose_cb(void *closure, int level, const char *file, int line, const char *fmt, va_list args)
 {
-       struct afb_ditf *ditf = closure;
-       old_vverbose_cb(closure, level, file, line, fmt, args);
-       afb_hook_ditf_vverbose(ditf, level, file, line, "", fmt, args);
+       hooked_vverbose_cb(closure, level, file, line, "?", fmt, args);
 }
 
 static struct afb_event hooked_event_make_cb(void *closure, const char *name)