diff options
author | Stefan Hajnoczi | 2017-01-26 18:16:12 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2017-01-31 18:11:28 +0100 |
commit | 6514532f7381dfdfdf7acc9b966fd754332b88cf (patch) | |
tree | 172a10c1bdbf5b6187fd7aca1be695390f1f0bf5 | |
parent | trace: improve error reporting when parsing simpletrace header (diff) | |
download | qemu-6514532f7381dfdfdf7acc9b966fd754332b88cf.tar.gz qemu-6514532f7381dfdfdf7acc9b966fd754332b88cf.tar.xz qemu-6514532f7381dfdfdf7acc9b966fd754332b88cf.zip |
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); |