WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] xenstore-stat

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xenstore-stat
From: Frank Pan <frankpzh@xxxxxxxxx>
Date: Wed, 30 Mar 2011 21:13:12 +0800
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Wed, 30 Mar 2011 06:14:02 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=w9pIqoJaT0Ptl5ilyakeK86PJH+vAER/wJyZy/GRSkk=; b=PCoZezBNe72SXbxd4EhfgGbYk1rLY9oUrognNPGkwWb8FW4ijBJAHsCY7J5xFeowKI c1VAsPY+wVbGjiOHev46M1ZCi4eWyC351gBxlf6erZsngjtKXDSE5YWX9Qx0qlmx/kMn P9DcC13SSQnRzE9O2BRbItPyPrM7zazicJvfg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=LTL8Jl0+/LUENF6PfBwvSST6p5AIUYJFZWHBpX+2THMJ9y8TaCIPBI/3nQErBQC2X8 TxHfMuWDJp1T5GrSIRrcehRrX2ILbiiOdl/Gm3RtPyWotvqNE7xiCjULOf+RqvyqavJK ZvTDYyVdezT00wdIll8vdTJetNGwduMh+vWTA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1301489736.27123.113.camel@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTimZHOtrN48ipU__tA-u0WJNHdTBPVN+PaKTDzvd@xxxxxxxxxxxxxx> <1301478810.27123.71.camel@xxxxxxxxxxxxxxxxxxxxxx> <AANLkTimdFJb6WJbdriqxCGFvTi-wRL6nqxutwTXt+eEv@xxxxxxxxxxxxxx> <1301489736.27123.113.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> But it doesn't have a loop over optind or anything. It looks to me like
> it will just print the info for the first key.

A big while sit inside perform():

while (optind < argc) {
    switch (mode) {
    blah blah...

And also I just tested that.

-- 
潘震皓, Frank Pan

Computer Science and Technology
Tsinghua University

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel