x86: make an error message more precise
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Dec 2008 15:24:12 +0000 (15:24 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Dec 2008 15:24:12 +0000 (15:24 +0000)
... allowing to distinguish whether the to be added or the already
existing PIRQ binding is causing the failure.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/irq.c

index e2c6453773359df3b1835c6d2cb597fd50e526cd..61c36e287453f3aef8ff9438d9d724b149fa613c 100644 (file)
@@ -623,9 +623,11 @@ int pirq_guest_bind(struct vcpu *v, int irq, int will_share)
     }
     else if ( !will_share || !action->shareable )
     {
-        gdprintk(XENLOG_INFO, "Cannot bind IRQ %d to guest. "
-               "Will not share with others.\n",
-                irq);
+        gdprintk(XENLOG_INFO, "Cannot bind IRQ %d to guest. %s.\n",
+                 irq,
+                 will_share ?
+                 "Others do not share" :
+                 "Will not share with others");
         rc = -EBUSY;
         goto unlock_out;
     }