aboutsummaryrefslogtreecommitdiff
path: root/storage-daemon/qemu-storage-daemon.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-11-02 06:58:41 -0500
committerStefan Hajnoczi <stefanha@redhat.com>2020-11-11 13:08:09 +0000
commit92eecfff32763ee138f4cebc1a12c5b051ad5bb5 (patch)
tree3b74701f9b1b6301b6e0a972eb7cc6bba22ad823 /storage-daemon/qemu-storage-daemon.c
parentc6f28ed5075df79fef39c500362a3f4089256c9c (diff)
downloadqemu-92eecfff32763ee138f4cebc1a12c5b051ad5bb5.zip
qemu-92eecfff32763ee138f4cebc1a12c5b051ad5bb5.tar.gz
qemu-92eecfff32763ee138f4cebc1a12c5b051ad5bb5.tar.bz2
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/qemu-storage-daemon.c')
-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 e419ba9..7c914b0 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");