]> Git Repo - qemu.git/commitdiff
qga: Relocate a path emitted in the help text
authorAkihiko Odaki <[email protected]>
Fri, 24 Jun 2022 14:54:55 +0000 (23:54 +0900)
committerPaolo Bonzini <[email protected]>
Fri, 8 Jul 2022 09:03:36 +0000 (11:03 +0200)
Signed-off-by: Akihiko Odaki <[email protected]>
Message-Id: <20220624145455[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
qga/main.c

index c373fec3ee6947a9cd1c45fe3b5adaf178d53026..5f1efa23334d2b98b76d196274f35a2017eb4950 100644 (file)
@@ -223,6 +223,10 @@ void reopen_fd_to_null(int fd)
 
 static void usage(const char *cmd)
 {
+#ifdef CONFIG_FSFREEZE
+    g_autofree char *fsfreeze_hook = get_relocated_path(QGA_FSFREEZE_HOOK_DEFAULT);
+#endif
+
     printf(
 "Usage: %s [-m <method> -p <path>] [<options>]\n"
 "QEMU Guest Agent " QEMU_FULL_VERSION "\n"
@@ -270,7 +274,7 @@ QEMU_HELP_BOTTOM "\n"
     , cmd, QGA_VIRTIO_PATH_DEFAULT, QGA_SERIAL_PATH_DEFAULT,
     dfl_pathnames.pidfile,
 #ifdef CONFIG_FSFREEZE
-    QGA_FSFREEZE_HOOK_DEFAULT,
+    fsfreeze_hook,
 #endif
     dfl_pathnames.state_dir);
 }
This page took 0.025594 seconds and 4 git commands to generate.