summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-04 16:15:08 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-09-07 09:43:14 +0200
commite51d68ddc998f558507217e3c849b16ce94c068f (patch)
treeacc7981747b3c6ba5695613138240a902d3a9db2
parent3e56dc3fc7ce31cb932fbd86e78eea02049d0b7e (diff)
afb-ditf: use NULL function feature
It is now safe to put NULL for function name. Change-Id: I83afc47e38b823e924ae8dab60a7a24065ae0ef6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-ditf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb-ditf.c b/src/afb-ditf.c
index bc020ba3..63268a85 100644
--- a/src/afb-ditf.c
+++ b/src/afb-ditf.c
@@ -56,7 +56,7 @@ static void vverbose_cb(void *closure, int level, const char *file, int line, co
static void old_vverbose_cb(void *closure, int level, const char *file, int line, const char *fmt, va_list args)
{
- vverbose_cb(closure, level, file, line, "?", fmt, args);
+ vverbose_cb(closure, level, file, line, NULL, fmt, args);
}
static struct afb_event event_make_cb(void *closure, const char *name)
@@ -152,7 +152,7 @@ static void hooked_vverbose_cb(void *closure, int level, const char *file, int l
static void hooked_old_vverbose_cb(void *closure, int level, const char *file, int line, const char *fmt, va_list args)
{
- hooked_vverbose_cb(closure, level, file, line, "?", fmt, args);
+ hooked_vverbose_cb(closure, level, file, line, NULL, fmt, args);
}
static struct afb_event hooked_event_make_cb(void *closure, const char *name)