afb-ditf: use NULL function feature
authorJosé Bollo <jose.bollo@iot.bzh>
Mon, 4 Sep 2017 14:15:08 +0000 (16:15 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 7 Sep 2017 07:43:14 +0000 (09:43 +0200)
It is now safe to put NULL for function name.

Change-Id: I83afc47e38b823e924ae8dab60a7a24065ae0ef6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-ditf.c

index bc020ba..63268a8 100644 (file)
@@ -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)