aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/event_channel.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-09-07 08:40:33 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-09-07 08:40:33 +0100
commite1c60c7545a3d5cd3be4bd777288a82c5c7fb821 (patch)
tree457dd0028f9a39bc34563754ad0b8590ccab4bbd /xen/common/event_channel.c
parent345fbe6cb410fb43c7b269a54d1c60e1e025f393 (diff)
downloadxen-e1c60c7545a3d5cd3be4bd777288a82c5c7fb821.tar.gz
xen-e1c60c7545a3d5cd3be4bd777288a82c5c7fb821.tar.bz2
xen-e1c60c7545a3d5cd3be4bd777288a82c5c7fb821.zip
Tidy evtchn keyhandler a little
Get rid of all the -1s and label the pending and masked columns. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/common/event_channel.c')
-rw-r--r--xen/common/event_channel.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c
index 9c2731788a..58be1729b0 100644
--- a/xen/common/event_channel.c
+++ b/xen/common/event_channel.c
@@ -1080,8 +1080,8 @@ static void domain_dump_evtchn_info(struct domain *d)
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 @@ static void domain_dump_evtchn_info(struct domain *d)
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 )
{