[libvirt] [PATCH 07/12] virsh: Apply macro for current VSH_OT_ARGV "domain" options

Lin Ma lma at suse.com
Fri May 4 09:25:28 UTC 2018


Signed-off-by: Lin Ma <lma at suse.com>
---
 tools/virsh-domain-monitor.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-domain-monitor.c
index e4a21534cb..1e1ee60198 100644
--- a/tools/virsh-domain-monitor.c
+++ b/tools/virsh-domain-monitor.c
@@ -2000,11 +2000,7 @@ static const vshCmdOptDef opts_domstats[] = {
      .type = VSH_OT_BOOL,
      .help = N_("add backing chain information to block stats"),
     },
-    {.name = "domain",
-     .type = VSH_OT_ARGV,
-     .flags = VSH_OFLAG_NONE,
-     .help = N_("list of domains to get stats for"),
-    },
+    VIRSH_COMMON_OPT_DOMAIN_OT_ARGV(N_("list of domains to get stats for"), 0),
     {.name = NULL}
 };
 
-- 
2.15.1




More information about the libvir-list mailing list