diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2017-01-26 17:16:12 +0000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2017-01-31 17:11:28 +0000 |
commit | 6514532f7381dfdfdf7acc9b966fd754332b88cf (patch) | |
tree | 172a10c1bdbf5b6187fd7aca1be695390f1f0bf5 | |
parent | 25d54654da2a2d1c612c827e6155d3bec0e1201f (diff) |
qapi: add missing trace_visit_type_enum() call
A trace event exists for enums but it's never called. This patch fixes
this oversight so that enums are traced just like the other QAPI types.
Suggested-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20170126171613.1399-2-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r-- | qapi/qapi-visit-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qapi/qapi-visit-core.c b/qapi/qapi-visit-core.c index 63bd97b341..e6e93f02e6 100644 --- a/qapi/qapi-visit-core.c +++ b/qapi/qapi-visit-core.c @@ -374,6 +374,7 @@ void visit_type_enum(Visitor *v, const char *name, int *obj, const char *const strings[], Error **errp) { assert(obj && strings); + trace_visit_type_enum(v, name, obj); switch (v->type) { case VISITOR_INPUT: input_type_enum(v, name, obj, strings, errp); |