ia64/xen-unstable

changeset 18890:d206692cbcbe

x86: make an error message more precise

... 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>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Dec 05 15:24:12 2008 +0000 (2008-12-05)
parents de7fd862ada2
children cc82d54bedfd
files xen/arch/x86/irq.c
line diff
     1.1 --- a/xen/arch/x86/irq.c	Fri Dec 05 15:23:32 2008 +0000
     1.2 +++ b/xen/arch/x86/irq.c	Fri Dec 05 15:24:12 2008 +0000
     1.3 @@ -623,9 +623,11 @@ int pirq_guest_bind(struct vcpu *v, int 
     1.4      }
     1.5      else if ( !will_share || !action->shareable )
     1.6      {
     1.7 -        gdprintk(XENLOG_INFO, "Cannot bind IRQ %d to guest. "
     1.8 -               "Will not share with others.\n",
     1.9 -                irq);
    1.10 +        gdprintk(XENLOG_INFO, "Cannot bind IRQ %d to guest. %s.\n",
    1.11 +                 irq,
    1.12 +                 will_share ?
    1.13 +                 "Others do not share" :
    1.14 +                 "Will not share with others");
    1.15          rc = -EBUSY;
    1.16          goto unlock_out;
    1.17      }