summaryrefslogtreecommitdiffstats
path: root/storage-daemon
diff options
context:
space:
mode:
authorPaolo Bonzini2020-11-02 12:58:41 +0100
committerStefan Hajnoczi2020-11-11 14:08:09 +0100
commit92eecfff32763ee138f4cebc1a12c5b051ad5bb5 (patch)
tree3b74701f9b1b6301b6e0a972eb7cc6bba22ad823 /storage-daemon
parentUpdate version for v5.2.0-rc1 release (diff)
downloadqemu-92eecfff32763ee138f4cebc1a12c5b051ad5bb5.tar.gz
qemu-92eecfff32763ee138f4cebc1a12c5b051ad5bb5.tar.xz
qemu-92eecfff32763ee138f4cebc1a12c5b051ad5bb5.zip
trace: remove argument from trace_init_file
It is not needed, all the callers are just saving what was retrieved from -trace and trace_init_file can retrieve it on its own. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 20201102115841.4017692-1-pbonzini@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'storage-daemon')
-rw-r--r--storage-daemon/qemu-storage-daemon.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/storage-daemon/qemu-storage-daemon.c b/storage-daemon/qemu-storage-daemon.c
index e419ba9f19..7c914b0dc1 100644
--- a/storage-daemon/qemu-storage-daemon.c
+++ b/storage-daemon/qemu-storage-daemon.c
@@ -180,12 +180,9 @@ static void process_options(int argc, char *argv[])
help();
exit(EXIT_SUCCESS);
case 'T':
- {
- char *trace_file = trace_opt_parse(optarg);
- trace_init_file(trace_file);
- g_free(trace_file);
- break;
- }
+ trace_opt_parse(optarg);
+ trace_init_file();
+ break;
case 'V':
printf("qemu-storage-daemon version "
QEMU_FULL_VERSION "\n" QEMU_COPYRIGHT "\n");