Blame SOURCES/kvm-qemu-option-Pull-out-Supported-options-print.patch

357786
From 1f1faf92011618b0d32dc6a4a7e5b5119c38c2ac Mon Sep 17 00:00:00 2001
357786
From: Max Reitz <mreitz@redhat.com>
357786
Date: Mon, 18 Jun 2018 14:59:39 +0200
357786
Subject: [PATCH 05/89] qemu-option: Pull out "Supported options" print
357786
357786
RH-Author: Max Reitz <mreitz@redhat.com>
357786
Message-id: <20180618145943.4489-4-mreitz@redhat.com>
357786
Patchwork-id: 80756
357786
O-Subject: [RHV-7.6 qemu-kvm-rhev PATCH 3/7] qemu-option: Pull out "Supported options" print
357786
Bugzilla: 1537956
357786
RH-Acked-by: John Snow <jsnow@redhat.com>
357786
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
357786
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
357786
357786
It really is up to the caller to decide what this list of options means.
357786
357786
Signed-off-by: Max Reitz <mreitz@redhat.com>
357786
Reviewed-by: John Snow <jsnow@redhat.com>
357786
Reviewed-by: Eric Blake <eblake@redhat.com>
357786
Message-id: 20180509210023.20283-4-mreitz@redhat.com
357786
Signed-off-by: Max Reitz <mreitz@redhat.com>
357786
(cherry picked from commit 7f3fb00136aaec74df8132492d1f48b8e9840258)
357786
Signed-off-by: Max Reitz <mreitz@redhat.com>
357786
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
357786
---
357786
 qemu-img.c         | 1 +
357786
 util/qemu-option.c | 1 -
357786
 2 files changed, 1 insertion(+), 1 deletion(-)
357786
357786
diff --git a/qemu-img.c b/qemu-img.c
357786
index e40d6ff..cdeb01b 100644
357786
--- a/qemu-img.c
357786
+++ b/qemu-img.c
357786
@@ -261,6 +261,7 @@ static int print_block_option_help(const char *filename, const char *fmt)
357786
         create_opts = qemu_opts_append(create_opts, proto_drv->create_opts);
357786
     }
357786
 
357786
+    printf("Supported options:\n");
357786
     qemu_opts_print_help(create_opts);
357786
     qemu_opts_free(create_opts);
357786
     return 0;
357786
diff --git a/util/qemu-option.c b/util/qemu-option.c
357786
index d0756fd..95e6cf4 100644
357786
--- a/util/qemu-option.c
357786
+++ b/util/qemu-option.c
357786
@@ -218,7 +218,6 @@ void qemu_opts_print_help(QemuOptsList *list)
357786
 
357786
     assert(list);
357786
     desc = list->desc;
357786
-    printf("Supported options:\n");
357786
     while (desc && desc->name) {
357786
         printf("%-16s %s\n", desc->name,
357786
                desc->help ? desc->help : "No description available");
357786
-- 
357786
1.8.3.1
357786