From: "Jan Beulich" Subject: [PATCH] x86: make an error message more precise Date: Fri, 05 Dec 2008 14:33:56 +0000 Message-ID: <493949E4.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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 ... allowing to distinguish whether the to be added or the already existing PIRQ binding is causing the failure. Signed-off-by: Jan Beulich Index: 2008-11-20/xen/arch/x86/irq.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 2008-11-20.orig/xen/arch/x86/irq.c 2008-11-26 14:48:18.000000000 = +0100 +++ 2008-11-20/xen/arch/x86/irq.c 2008-12-05 11:30:37.000000000 = +0100 @@ -623,9 +623,11 @@ int pirq_guest_bind(struct vcpu *v, int=20 } 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 =3D -EBUSY; goto unlock_out; }