aboutsummaryrefslogtreecommitdiff
path: root/trace
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-10-07 15:08:13 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-10-14 09:50:56 +0200
commit0955d66e65e68580021a99960581422e93c127d4 (patch)
tree6763b028ac5542616cad3ae6640a8117f1295cea /trace
parent537b7248991b85d1fb92cce78ecf1056f40bb750 (diff)
downloadqemu-0955d66e65e68580021a99960581422e93c127d4.zip
qemu-0955d66e65e68580021a99960581422e93c127d4.tar.gz
qemu-0955d66e65e68580021a99960581422e93c127d4.tar.bz2
trace: simple: pass trace_file unmodified to config-host.h
Add the suffix directly in trace/simple.c, so that quoting is done properly by Meson. Cc: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20211007130829.632254-3-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'trace')
-rw-r--r--trace/simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trace/simple.c b/trace/simple.c
index ac499ed..18af590 100644
--- a/trace/simple.c
+++ b/trace/simple.c
@@ -364,7 +364,7 @@ void st_set_trace_file(const char *file)
if (!file) {
/* Type cast needed for Windows where getpid() returns an int. */
- trace_file_name = g_strdup_printf(CONFIG_TRACE_FILE, (pid_t)getpid());
+ trace_file_name = g_strdup_printf(CONFIG_TRACE_FILE "-" FMT_pid, (pid_t)getpid());
} else {
trace_file_name = g_strdup_printf("%s", file);
}