aboutsummaryrefslogtreecommitdiff
path: root/trace
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2018-05-03 22:50:28 +0300
committerMichael S. Tsirkin <mst@redhat.com>2018-06-01 19:20:37 +0300
commita322714248b9e8dffe6a2bb379ffd5d59b394bb7 (patch)
tree1f6efdc944c80956d09efbde3ecc3f94bbb4a043 /trace
parent83ee768d6247bf121b5b8f4b7580fbbc1281d473 (diff)
trace: use local path for local headers
When pulling in headers that are in the same directory as the C file (as opposed to one in include/), we should use its relative path, without a directory. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'trace')
-rw-r--r--trace/control.h2
-rw-r--r--trace/qmp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/trace/control.h b/trace/control.h
index 1903e22975..eb65c8e320 100644
--- a/trace/control.h
+++ b/trace/control.h
@@ -267,6 +267,6 @@ char *trace_opt_parse(const char *optarg);
uint32_t trace_get_vcpu_event_count(void);
-#include "trace/control-internal.h"
+#include "control-internal.h"
#endif /* TRACE__CONTROL_H */
diff --git a/trace/qmp.c b/trace/qmp.c
index 756086c79f..ea99b00956 100644
--- a/trace/qmp.c
+++ b/trace/qmp.c
@@ -10,7 +10,7 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qapi/qapi-commands-trace.h"
-#include "trace/control.h"
+#include "control.h"
static CPUState *get_cpu(bool has_vcpu, int vcpu, Error **errp)