aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-20 09:29:00 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-09 14:08:29 +0200
commitc70645be828bc0ee182a4fc97db0e4471501d2a4 (patch)
tree1e1317e0f11bf49be30b2cf0068e56acb15714c7
parentf0ae5e64c8b2948b6d95c6db96bed55fc17d9936 (diff)
afb-trace: improve naming (minor)
Change-Id: Ife42648b089d23d75820337e015703ee884d99fc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-trace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/afb-trace.c b/src/afb-trace.c
index bf8db690..e4134103 100644
--- a/src/afb-trace.c
+++ b/src/afb-trace.c
@@ -188,17 +188,17 @@ static const char *verbosity_level_name(int level)
static void emit(void *closure, const struct afb_hookid *hookid, const char *type, const char *fmt1, const char *fmt2, va_list ap2, ...)
{
struct hook *hook = closure;
- struct json_object *event, *data1, *data2;
+ struct json_object *data, *data1, *data2;
va_list ap1;
- data1 = data2 = event = NULL;
+ data1 = data2 = data = NULL;
va_start(ap1, ap2);
wrap_json_vpack(&data1, fmt1, ap1);
va_end(ap1);
if (fmt2)
wrap_json_vpack(&data2, fmt2, ap2);
- wrap_json_pack(&event, "{so ss ss si so so*}",
+ wrap_json_pack(&data, "{so ss ss si so so*}",
"time", timestamp(hookid),
"tag", hook->tag->tag,
"type", type,
@@ -206,7 +206,7 @@ static void emit(void *closure, const struct afb_hookid *hookid, const char *typ
type, data1,
"data", data2);
- afb_evt_unhooked_push(hook->event->event, event);
+ afb_evt_unhooked_push(hook->event->event, data);
}
/*******************************************************************************/