From: Ian Jackson Subject: Re: [PATCH] tools/libx: xl uptime doesn't require argument Date: Thu, 9 Jan 2014 14:53:22 +0000 Message-ID: <21198.47074.134445.478548@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> <21171.10493.795698.466565@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W1GzC-0003cA-I1 for xen-devel@lists.xenproject.org; Thu, 09 Jan 2014 14:53:30 +0000 In-Reply-To: <21171.10493.795698.466565@mariner.uk.xensource.com> 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 , xen-devel@lists.xenproject.org, patches@linaro.org, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Ian Jackson writes ("Re: [PATCH] tools/libx: xl uptime doesn't require argument"): > Julien Grall writes ("Re: [PATCH] tools/libx: xl uptime doesn't require argument"): > > 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. This applied cleanly to 4.3. But it didn't apply cleanly to 4.2 and the code there is somewhat different so I wasn't sure just fixing up the textual changes would be sufficient. I would be inclined not to backport it to 4.2 unless someone thinks this fix is important and would like to prepare a tested backport. Thanks, Ian.