Ver Fonte

chardev/socket: print a more correct command-line address

Better reflect the command line version of the socket address arguments,
following the now recommended long-form opt=on syntax.

Complement/fixes commit 9d902d51 "chardev: do not use short form boolean
options in non-QemuOpts character device descriptions".

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Marc-André Lureau há 4 anos atrás
pai
commit
30f80be34b
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      chardev/char-socket.c

+ 2 - 2
chardev/char-socket.c

@@ -468,9 +468,9 @@ static char *qemu_chr_socket_address(SocketChardev *s, const char *prefix)
 
 
 #ifdef CONFIG_LINUX
 #ifdef CONFIG_LINUX
         if (sa->has_abstract && sa->abstract) {
         if (sa->has_abstract && sa->abstract) {
-            abstract = ",abstract";
+            abstract = ",abstract=on";
             if (sa->has_tight && sa->tight) {
             if (sa->has_tight && sa->tight) {
-                tight = ",tight";
+                tight = ",tight=on";
             }
             }
         }
         }
 #endif
 #endif