Skip to contentSkip to conversation

tidy evtchn keyhandler a little

PATCH New Tim Deegan 1 participant 1 message Sep 4, 2009

lore
Share & tools
lore

Tim Deegan

author
#0 lore raw

PATCH 1/1 tidy evtchn keyhandler a little

Get rid of all the -1s and label the pending and masked columns.

xen/common/event_channel.c +5 -5
diff -r ead107bc25cb xen/common/event_channel.c
@@ -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 )
         {

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel