From nobody Mon Feb 9 12:45:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1609800745; cv=none; d=zohomail.com; s=zohoarc; b=CX7696wo2+pNQq66gbV9u6giB32Yh/mm85/RdEN2zIJdw/ktjxu42RcILbf0gV7CYmkqTco2EjhOYdCA5ZUey0Sobghom5TIZOwad3hrfkobcat5z/dm9/7IBFXh4HuUIgf16yRgKrJASrzCZXflorwc95OzN8jE22+FcrnBUo4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609800745; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=/DAtl29I47r02J1iKAFddBFld448KR070EvuR6athsA=; b=b8SRvZCkVvZqKi+frCECt0QrH3hRf9ZFU8lirUmVPNdq1IC9MqyKpmDEu2L7qt7f5SKAcciSPgTx1tpYoOQqf6l6RZTu6+dJOrs38UFO9U8NZzL6wHv+7S9hWF/67aLUocKMfsVPBnW/sJZJKohz4GRJyyLoHzTZEd8B2qPBy0U= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1609800745344969.3309615671661; Mon, 4 Jan 2021 14:52:25 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.61556.108432 (Exim 4.92) (envelope-from ) id 1kwYhx-0001C2-2h; Mon, 04 Jan 2021 22:52:13 +0000 Received: by outflank-mailman (output) from mailman id 61556.108432; Mon, 04 Jan 2021 22:52:13 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kwYhw-0001Bu-Vz; Mon, 04 Jan 2021 22:52:12 +0000 Received: by outflank-mailman (input) for mailman id 61556; Mon, 04 Jan 2021 22:52:10 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kwYhu-0000oY-Ss for xen-devel@lists.xenproject.org; Mon, 04 Jan 2021 22:52:10 +0000 Received: from mailhost.m5p.com (unknown [74.104.188.4]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 9f1e43c2-3fb8-4ee3-909c-927d361f92ea; Mon, 04 Jan 2021 22:51:59 +0000 (UTC) Received: from m5p.com (mailhost.m5p.com [IPv6:2001:470:1f07:15ff:0:0:0:f7]) by mailhost.m5p.com (8.15.2/8.15.2) with ESMTPS id 104MpnaN071442 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 4 Jan 2021 17:51:55 -0500 (EST) (envelope-from ehem@m5p.com) Received: (from ehem@localhost) by m5p.com (8.15.2/8.15.2/Submit) id 104Mpnsm071441; Mon, 4 Jan 2021 14:51:49 -0800 (PST) (envelope-from ehem) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 9f1e43c2-3fb8-4ee3-909c-927d361f92ea Message-Id: <80f80b6bf5da09ceb332773b96f1dd554782b030.1608663694.git.ehem+xen@m5p.com> In-Reply-To: References: From: Elliott Mitchell To: xen-devel@lists.xenproject.org Cc: Ian Jackson Cc: Wei Liu Cc: Anthony PERARD Date: Wed, 9 Dec 2020 14:34:37 -0800 Subject: [WIP PATCH 07/16] tools/xl: Sort list command options X-Spam-Status: No, score=2.1 required=10.0 tests=DATE_IN_PAST_96_XX, KHOP_HELO_FCRDNS autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mattapan.m5p.com Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Simply a minor housekeeping task. Unfortunately no single order really dominates. Some spots use the option name, some the option letter. Signed-off-by: Elliott Mitchell --- tools/xl/xl_cmdtable.c | 4 ++-- tools/xl/xl_list.c | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tools/xl/xl_cmdtable.c b/tools/xl/xl_cmdtable.c index 6ab5e47da3..6a05bf7ce2 100644 --- a/tools/xl/xl_cmdtable.c +++ b/tools/xl/xl_cmdtable.c @@ -53,11 +53,11 @@ struct cmd_spec cmd_table[] =3D { &main_list, 0, 0, "List information about all/some domains", "[options] [Domain]\n", - "-l, --long Output all VM details\n" - "-v, --verbose Prints out UUIDs and security context\n" "-Z, --context Prints out security context\n" "-c, --cpupool Prints the cpupool the domain is in\n" + "-l, --long Output all VM details\n" "-n, --numa Prints out NUMA node affinity" + "-v, --verbose Prints out UUIDs and security context\n" }, { "destroy", &main_destroy, 0, 1, diff --git a/tools/xl/xl_list.c b/tools/xl/xl_list.c index ac6a9e5eac..8b391a9056 100644 --- a/tools/xl/xl_list.c +++ b/tools/xl/xl_list.c @@ -129,17 +129,17 @@ static void list_domains(bool verbose, bool context, = bool claim, bool numa, int main_list(int argc, char **argv) { int opt; - bool verbose =3D false; bool context =3D false; - bool details =3D false; bool cpupool =3D false; + bool details =3D false; bool numa =3D false; + bool verbose =3D false; static struct option opts[] =3D { - {"long", 0, 0, 'l'}, - {"verbose", 0, 0, 'v'}, {"context", 0, 0, 'Z'}, {"cpupool", 0, 0, 'c'}, + {"long", 0, 0, 'l'}, {"numa", 0, 0, 'n'}, + {"verbose", 0, 0, 'v'}, COMMON_LONG_OPTS }; =20 @@ -147,22 +147,22 @@ int main_list(int argc, char **argv) libxl_dominfo *info, *info_free=3D0; int nb_domain, rc; =20 - SWITCH_FOREACH_OPT(opt, "lvhZcn", opts, "list", 0) { - case 'l': - details =3D true; - break; - case 'v': - verbose =3D true; - break; + SWITCH_FOREACH_OPT(opt, "Zchlnv", opts, "list", 0) { case 'Z': context =3D true; break; case 'c': cpupool =3D true; break; + case 'l': + details =3D true; + break; case 'n': numa =3D true; break; + case 'v': + verbose =3D true; + break; } =20 libxl_dominfo_init(&info_buf); --=20 --=20 (\___(\___(\______ --=3D> 8-) EHM <=3D-- ______/)___/)___= /) \BS ( | ehem+sigmsg@m5p.com PGP 87145445 | ) / \_CS\ | _____ -O #include O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445