patch-2.1.115 linux/drivers/misc/parport_procfs.c

Next file: linux/drivers/sbus/audio/amd7930.c
Previous file: linux/drivers/misc/parport_ax.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.114/linux/drivers/misc/parport_procfs.c linux/drivers/misc/parport_procfs.c
@@ -105,10 +105,15 @@
 	struct parport *pp = (struct parport *)data;
 	int len;
 	
-	if (pp->irq == PARPORT_IRQ_NONE)
+	if (pp->irq == PARPORT_IRQ_NONE) {
 		len = sprintf(page, "none\n");
-	else
+	} else {
+#ifdef __sparc__
+		len = sprintf(page, "%s\n", __irq_itoa(pp->irq));
+#else
 		len = sprintf(page, "%d\n", pp->irq);
+#endif
+	}
 	
 	*start = 0;
 	*eof   = 1;
@@ -146,10 +151,15 @@
 	
 	len += sprintf(page+len, "base:\t0x%lx\n",pp->base);
 
-	if (pp->irq == PARPORT_IRQ_NONE)
+	if (pp->irq == PARPORT_IRQ_NONE) {
 		len += sprintf(page+len, "irq:\tnone\n");
-	else
+	} else {
+#ifdef __sparc__
+		len += sprintf(page+len, "irq:\t%s\n",__irq_itoa(pp->irq));
+#else
 		len += sprintf(page+len, "irq:\t%d\n",pp->irq);
+#endif
+	}
 
 	if (pp->dma == PARPORT_DMA_NONE)
 		len += sprintf(page+len, "dma:\tnone\n");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov