chardev: Indent list of chardevs
authorMax Reitz <mreitz@redhat.com>
Fri, 19 Oct 2018 16:49:26 +0000 (18:49 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Nov 2018 14:18:00 +0000 (15:18 +0100)
Following the example of qemu_opts_print_help(), indent all entries in
the list of character devices.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
chardev/char.c

index 79b05fb7b703baffd8bfa5676163c236d3c7f8b7..152dde5327d7291a2efe1916f9891b2962db060c 100644 (file)
@@ -572,7 +572,7 @@ help_string_append(const char *name, void *opaque)
 {
     GString *str = opaque;
 
-    g_string_append_printf(str, "\n%s", name);
+    g_string_append_printf(str, "\n  %s", name);
 }
 
 static const char *chardev_alias_translate(const char *name)