From patchwork Thu Dec 19 16:45:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 22650 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 042B623FC4 for ; Thu, 19 Dec 2013 16:45:12 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id v10sf3264607pde.0 for ; Thu, 19 Dec 2013 08:45:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=UB+hsl3dxihNCwZkEuf5nauB60FFkI1f+0JfjPfXd4M=; b=C9kKRaFr4M7jNJM2OmM8GUvSCHQPAt9U6YQwKC+d4oHU8vibQCFkT8VDouj/MAKdej XlvZHownXJCQetkC4RJ2PeKqcDaBNLPF5/gQm0ngjyXPLE5ahj+UWxePm0rb8XjffgXm TJq40kejFRGbIk+AmREnZi6k99B2ISs5tnx0GET2otGsAK1xclRzgD543Dfv5hUSLekV 8hCOwsXwyFEXfOLpnPnh7bViyzxlHdSHAYVDCywiZ6N8N403wOQwDTX1P+/1LR1cQLN3 +GkLevXB1WyU+QEHPuzztMvjGS+B7eLa8upnga35NR0b7YigKfGT7F95B6ZrA0lJE8mN JSIQ== X-Gm-Message-State: ALoCoQnI8P8iay6nUA6NXQjjChKgDBOblpjfeAGgJGrkxzRHyHNDohQqCH32Au2y/lEoOCCQ00gy X-Received: by 10.66.248.193 with SMTP id yo1mr1176304pac.6.1387471511615; Thu, 19 Dec 2013 08:45:11 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.37.163 with SMTP id z3ls423957qej.1.gmail; Thu, 19 Dec 2013 08:45:11 -0800 (PST) X-Received: by 10.220.17.131 with SMTP id s3mr1093929vca.20.1387471511414; Thu, 19 Dec 2013 08:45:11 -0800 (PST) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id rj6si800068vcb.140.2013.12.19.08.45.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Dec 2013 08:45:11 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.48; Received: by mail-vb0-f48.google.com with SMTP id f13so808917vbg.35 for ; Thu, 19 Dec 2013 08:45:11 -0800 (PST) X-Received: by 10.220.174.200 with SMTP id u8mr1562455vcz.6.1387471511304; Thu, 19 Dec 2013 08:45:11 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp336044ved; Thu, 19 Dec 2013 08:45:10 -0800 (PST) X-Received: by 10.15.41.140 with SMTP id s12mr792988eev.50.1387471510332; Thu, 19 Dec 2013 08:45:10 -0800 (PST) Received: from mail-ea0-f178.google.com (mail-ea0-f178.google.com [209.85.215.178]) by mx.google.com with ESMTPS id i1si5106931eev.173.2013.12.19.08.45.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Dec 2013 08:45:10 -0800 (PST) Received-SPF: neutral (google.com: 209.85.215.178 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=209.85.215.178; Received: by mail-ea0-f178.google.com with SMTP id d10so608494eaj.9 for ; Thu, 19 Dec 2013 08:45:09 -0800 (PST) X-Received: by 10.15.54.130 with SMTP id t2mr765914eew.72.1387471509522; Thu, 19 Dec 2013 08:45:09 -0800 (PST) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id z42sm10800663eeo.17.2013.12.19.08.45.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Dec 2013 08:45:07 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Cc: patches@linaro.org, ian.campbell@citrix.com, ian.jackson@eu.citrix.com, Julien Grall Subject: [PATCH] tools/libx: xl uptime doesn't require argument Date: Thu, 19 Dec 2013 16:45:03 +0000 Message-Id: <1387471503-20794-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The current behavior is: 42sh> xl uptime 'xl uptime' requires at least 1 argument. Usage: xl [-v] uptime [-s] [Domain] The normal behavior should list uptime for each domain when there is no parameters. Signed-off-by: Julien Grall Acked-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 078f7a7..dce2699 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -6285,7 +6285,7 @@ int main_uptime(int argc, char **argv) int nb_doms = 0; int opt; - SWITCH_FOREACH_OPT(opt, "s", NULL, "uptime", 1) { + SWITCH_FOREACH_OPT(opt, "s", NULL, "uptime", 0) { case 's': short_mode = 1; break;