From: Tim Deegan Subject: [PATCH] tidy evtchn keyhandler a little Date: Fri, 4 Sep 2009 10:48:16 +0100 Message-ID: <20090904094816.GW5235@york.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="mR8QP4gmHujQHb1c" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --mR8QP4gmHujQHb1c Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Get rid of all the -1s and label the pending and masked columns. Signed-off-by: Tim Deegan --mR8QP4gmHujQHb1c Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: attachment; filename="evtchn-key" diff -r ead107bc25cb xen/common/event_channel.c --- a/xen/common/event_channel.c Fri Sep 04 08:43:05 2009 +0100 +++ b/xen/common/event_channel.c Fri Sep 04 10:45:26 2009 +0100 @@ -1080,8 +1080,8 @@ if ( !spin_trylock(&d->event_lock) ) return; - printk("Event channel information for domain %d:\n", - d->domain_id); + printk("Event channel information for domain %d:\n" + " port [p/m]\n", d->domain_id); for ( port = 1; port < MAX_EVTCHNS(d); ++port ) { @@ -1093,10 +1093,10 @@ if ( chn->state == ECS_FREE ) continue; - printk(" %4u[%d/%d]: s=%d n=%d", + printk(" %4u [%d/%d]: s=%d n=%d", port, - test_bit(port, &shared_info(d, evtchn_pending)), - test_bit(port, &shared_info(d, evtchn_mask)), + !!test_bit(port, &shared_info(d, evtchn_pending)), + !!test_bit(port, &shared_info(d, evtchn_mask)), chn->state, chn->notify_vcpu_id); switch ( chn->state ) { --mR8QP4gmHujQHb1c Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --mR8QP4gmHujQHb1c--