]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qapi: add missing trace_visit_type_enum() call
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 26 Jan 2017 17:16:12 +0000 (17:16 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 31 Jan 2017 17:11:28 +0000 (17:11 +0000)
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>
qapi/qapi-visit-core.c

index 63bd97b341ea6517e3e3b4a5088d469ccc17e180..e6e93f02e6d145504aaca42df5617e59b1bf5cf9 100644 (file)
@@ -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);