From: Ian Jackson Subject: Re: [PATCH] tools/libx: xl uptime doesn't require argument Date: Thu, 19 Dec 2013 17:12:29 +0000 Message-ID: <21171.10493.795698.466565@mariner.uk.xensource.com> References: <1387471503-20794-1-git-send-email-julien.grall@linaro.org> <21171.9437.668231.442440@mariner.uk.xensource.com> <52B32737.4000303@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vth9G-0002D4-MQ for xen-devel@lists.xenproject.org; Thu, 19 Dec 2013 17:12:34 +0000 In-Reply-To: <52B32737.4000303@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, ian.campbell@citrix.com, patches@linaro.org List-Id: xen-devel@lists.xenproject.org Julien Grall writes ("Re: [PATCH] tools/libx: xl uptime doesn't require argument"): > On 12/19/2013 04:54 PM, Ian Jackson wrote: > > Julien Grall writes ("[PATCH] tools/libx: xl uptime doesn't require argument"): > >> The normal behavior should list uptime for each domain when there is no > >> parameters. ... > No, the last argument of SWITCH_FOREACH_OPT indicates how many argument > is required. > > With this simple patch I can do: > 42sh> xl uptime > Name ID Uptime > Domain-0 0 12:25:52 Oh wait I see the "nb_domains==0" case in print_uptime. Foolish me for expecting xl's logic to have any kind of rationale. Acked-by: Ian Jackson Committed-by: Ian Jackson And added to my backport list. Ian.