From: Stefan Hajnoczi Date: Thu, 26 Jan 2017 17:16:12 +0000 (+0000) Subject: qapi: add missing trace_visit_type_enum() call X-Git-Tag: v2.9.0-rc2~167^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=6514532f7381dfdfdf7acc9b966fd754332b88cf;p=mirror_qemu.git 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 Signed-off-by: Stefan Hajnoczi Reviewed-by: Eric Blake Message-id: 20170126171613.1399-2-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi --- 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);