patch-2.1.115 linux/arch/sparc64/kernel/ebus.c

Next file: linux/arch/sparc64/kernel/entry.S
Previous file: linux/arch/sparc64/kernel/dtlb_prot.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.114/linux/arch/sparc64/kernel/ebus.c linux/arch/sparc64/kernel/ebus.c
@@ -1,4 +1,4 @@
-/* $Id: ebus.c,v 1.26 1998/04/21 06:34:02 ecd Exp $
+/* $Id: ebus.c,v 1.29 1998/07/01 15:39:44 jj Exp $
  * ebus.c: PCI to EBus bridge device.
  *
  * Copyright (C) 1997  Eddie C. Dost  (ecd@skynet.be)
@@ -51,7 +51,13 @@
 
 static inline unsigned long ebus_alloc(size_t size)
 {
-	return (unsigned long)kmalloc(size, GFP_ATOMIC);
+	unsigned long mem;
+
+	mem = (unsigned long)kmalloc(size, GFP_ATOMIC);
+	if (!mem)
+		panic(__FUNCTION__ ": out of memory");
+	memset((char *)mem, 0, size);
+	return mem;
 }
 
 __initfunc(void ebus_intmap_match(struct linux_ebus *ebus,
@@ -140,7 +146,7 @@
 	if (dev->num_irqs) {
 		dprintf("        IRQ%s", dev->num_irqs > 1 ? "s" : "");
 		for (i = 0; i < dev->num_irqs; i++)
-			dprintf(" %08x", dev->irqs[i]);
+			dprintf(" %s", __irq_itoa(dev->irqs[i]));
 		dprintf("\n");
 	}
 #endif
@@ -194,7 +200,7 @@
 	if (dev->num_irqs) {
 		dprintf("  IRQ%s", dev->num_irqs > 1 ? "s" : "");
 		for (i = 0; i < dev->num_irqs; i++)
-			dprintf(" %08x", dev->irqs[i]);
+			dprintf(" %s", __irq_itoa(dev->irqs[i]));
 		dprintf("\n");
 	}
 #endif

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