direct-io.hg

changeset 10414:a5bf90abcbe8

[IA64] fix garbage in irq_ia64.c kernel message

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author awilliam@xenbuild.aw
date Thu Jun 15 08:56:47 2006 -0600 (2006-06-15)
parents 34bdc8d86f8d
children 511ced948390
files linux-2.6-xen-sparse/arch/ia64/kernel/irq_ia64.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/ia64/kernel/irq_ia64.c	Thu Jun 15 08:46:43 2006 -0600
     1.2 +++ b/linux-2.6-xen-sparse/arch/ia64/kernel/irq_ia64.c	Thu Jun 15 08:56:47 2006 -0600
     1.3 @@ -284,7 +284,6 @@ static struct irqaction resched_irqactio
     1.4  static void
     1.5  xen_register_percpu_irq (unsigned int irq, struct irqaction *action, int save)
     1.6  {
     1.7 -	char name[15];
     1.8  	unsigned int cpu = smp_processor_id();
     1.9  	int ret = 0;
    1.10  
    1.11 @@ -295,21 +294,23 @@ xen_register_percpu_irq (unsigned int ir
    1.12  			ret = bind_virq_to_irqhandler(VIRQ_ITC, cpu,
    1.13  				action->handler, action->flags,
    1.14  				timer_name[cpu], action->dev_id);
    1.15 -			printk(KERN_INFO "register VIRQ_ITC (%s) to xen irq (%d)\n", name, ret);
    1.16 +			printk(KERN_INFO "register VIRQ_ITC (%s) to xen irq (%d)\n", timer_name[cpu], ret);
    1.17  			break;
    1.18  		case IA64_IPI_RESCHEDULE:
    1.19  			sprintf(resched_name[cpu], "%s%d", action->name, cpu);
    1.20  			ret = bind_ipi_to_irqhandler(RESCHEDULE_VECTOR, cpu,
    1.21  				action->handler, action->flags,
    1.22  				resched_name[cpu], action->dev_id);
    1.23 -			printk(KERN_INFO "register RESCHEDULE_VECTOR (%s) to xen irq (%d)\n", name, ret);
    1.24 +			printk(KERN_INFO "register RESCHEDULE_VECTOR (%s) to xen irq (%d)\n", resched_name[cpu], ret);
    1.25  			break;
    1.26  		case IA64_IPI_VECTOR:
    1.27  			sprintf(ipi_name[cpu], "%s%d", action->name, cpu);
    1.28  			ret = bind_ipi_to_irqhandler(IPI_VECTOR, cpu,
    1.29  				action->handler, action->flags,
    1.30  				ipi_name[cpu], action->dev_id);
    1.31 -			printk(KERN_INFO "register IPI_VECTOR (%s) to xen irq (%d)\n", name, ret);
    1.32 +			printk(KERN_INFO "register IPI_VECTOR (%s) to xen irq (%d)\n", ipi_name[cpu], ret);
    1.33 +			break;
    1.34 +		case IA64_SPURIOUS_INT_VECTOR:
    1.35  			break;
    1.36  		default:
    1.37  			printk(KERN_WARNING "Percpu irq %d is unsupported by xen!\n", irq);