]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: Fix the order of format arguments in doDump
authorHan Han <hhan@redhat.com>
Tue, 13 Jul 2021 08:04:12 +0000 (16:04 +0800)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 13 Jul 2021 09:21:23 +0000 (11:21 +0200)
According to definition of virDomainCoreDumpFormat, the "elf" should be
the first argument in VIR_ENUM_*.

Fixes: 84cc4543be
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1981625

Signed-off-by: Han Han <hhan@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
tools/virsh-domain.c

index f2a5fb03a4370a346d65b7518dbc6db67d49b6ed..29748b0257e7c900a2342eabe7387ed4778376c5 100644 (file)
@@ -5412,10 +5412,10 @@ static const vshCmdOptDef opts_dump[] = {
 
 VIR_ENUM_IMPL(virDomainCoreDumpFormat,
               VIR_DOMAIN_CORE_DUMP_FORMAT_LAST,
+              "elf",
               "kdump-zlib",
               "kdump-lzo",
               "kdump-snappy",
-              "elf",
               "win-dmp");
 
 static void