summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-04-26 18:17:15 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-04-26 18:17:15 +0200
commitacca25c347b35a720c005436160ad623767b5eb1 (patch)
tree96d40e6660ce2c8272c65911e50ade5d6edcc828
parent3580f1a46e5d1a4d4baab7db790418d6bc35b679 (diff)
cleanup
Change-Id: I6296e8d0897e3a1619d1ad832a27dcb9828eae99 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-ditf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/afb-ditf.c b/src/afb-ditf.c
index 9d65d30c..fde9e043 100644
--- a/src/afb-ditf.c
+++ b/src/afb-ditf.c
@@ -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)