From: Han Han Date: Tue, 13 Jul 2021 08:04:12 +0000 (+0800) Subject: virsh: Fix the order of format arguments in doDump X-Git-Tag: v7.6.0-rc1~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78b1a53df13e2acff872327da933be9fa2c0d069;p=thirdparty%2Flibvirt.git virsh: Fix the order of format arguments in doDump 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 Reviewed-by: Peter Krempa --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index f2a5fb03a4..29748b0257 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -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