diff -urN linux-2.5.75/arch/m68knommu/kernel/comempci.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/kernel/comempci.c --- linux-2.5.75/arch/m68knommu/kernel/comempci.c 2003-07-10 16:09:37.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/kernel/comempci.c 2003-07-11 13:33:48.000000000 -0400 @@ -89,7 +89,7 @@ int i; #ifdef DEBUGPCI - printk("pci_resetbus()\n"); + printk(KERN_DEBUG "pci_resetbus()\n"); #endif *((volatile unsigned short *) (MCF_MBAR+MCFSIM_PADDR)) |= eLIA_PCIRESET; @@ -113,7 +113,7 @@ int bar; #ifdef DEBUGPCI - printk("pcibios_assign_resource_slot(slot=%x)\n", slot); + printk(KERN_INFO "pcibios_assign_resource_slot(slot=%x)\n", slot); #endif rp = (volatile unsigned long *) COMEM_BASE; @@ -125,9 +125,9 @@ rp[LREG(COMEM_DAHBASE)] = COMEM_DA_CFGRD | idsel; val = rp[LREG(addr)]; #ifdef DEBUGRES - printk("-----------------------------------" + printk(KERN_DEBUG "-----------------------------------" "-------------------------------------\n"); - printk("BAR[%d]: read=%08x ", bar, val); + printk(KERN_DEBUG "BAR[%d]: read=%08x ", bar, val); #endif rp[LREG(COMEM_DAHBASE)] = COMEM_DA_CFGWR | idsel; @@ -136,11 +136,11 @@ rp[LREG(COMEM_DAHBASE)] = COMEM_DA_CFGRD | idsel; val = rp[LREG(addr)]; #ifdef DEBUGRES - printk("write=%08x ", val); + printk(KERN_DEBUG "write=%08x ", val); #endif if (val == 0) { #ifdef DEBUGRES - printk("\n"); + printk(KERN_DEBUG "\n"); #endif continue; } @@ -153,7 +153,7 @@ } #ifdef DEBUGRES - printk("size=%08x(%d)\n", (0x1 << i), i); + printk(KERN_DEBUG "size=%08x(%d)\n", (0x1 << i), i); #endif i = 0x1 << i; @@ -162,14 +162,14 @@ if (i < PCI_MINIO) i = PCI_MINIO; #ifdef DEBUGRES - printk("BAR[%d]: IO size=%08x iobase=%08x\n", + printk(KERN_DEBUG "BAR[%d]: IO size=%08x iobase=%08x\n", bar, i, pci_iobase); #endif if (i > 0xffff) { /* Invalid size?? */ val = 0 | PCI_BASE_ADDRESS_SPACE_IO; #ifdef DEBUGRES - printk("BAR[%d]: too big for IO??\n", bar); + printk(KERN_DEBUG "BAR[%d]: too big for IO??\n", bar); #endif } else { /* Check for un-alignment */ @@ -182,7 +182,7 @@ if (i < PCI_MINMEM) i = PCI_MINMEM; #ifdef DEBUGRES - printk("BAR[%d]: MEMORY size=%08x membase=%08x\n", + printk(KERN_DEBUG "BAR[%d]: MEMORY size=%08x membase=%08x\n", bar, i, pci_membase); #endif /* Check for un-alignment */ @@ -196,12 +196,12 @@ rp[LREG(COMEM_DAHBASE)] = COMEM_DA_CFGWR | idsel; rp[LREG(addr)] = val; #ifdef DEBUGRES - printk("BAR[%d]: assigned bar=%08x\n", bar, val); + printk(KERN_DEBUG "BAR[%d]: assigned bar=%08x\n", bar, val); #endif } #ifdef DEBUGRES - printk("-----------------------------------" + printk(KERN_DEBUG "-----------------------------------" "-------------------------------------\n"); #endif @@ -215,7 +215,7 @@ addr = (PCI_INTERRUPT_LINE & 0xfc)+(~PCI_INTERRUPT_LINE & 0x03); ip[addr] = 25; #ifdef DEBUGRES - printk("IRQ LINE=25\n"); + printk(KERN_DEBUG "IRQ LINE=25\n"); #endif } @@ -232,7 +232,7 @@ unsigned short cmd; #ifdef DEBUGPCI - printk("pcibios_enbale_slot(slot=%x)\n", slot); + printk(KERN_DEBUG "pcibios_enbale_slot(slot=%x)\n", slot); #endif rp = (volatile unsigned long *) COMEM_BASE; @@ -273,7 +273,7 @@ rp[LREG(COMEM_PCIBUS)] = 0; /* Clear bus */ id = rp[LREG(COMEM_PCIBUS)]; if ((id != 0) && ((id & 0xffff0000) != (sel & 0xffff0000))) { - printk("PCI: slot=%d id=%08x\n", slot, (int) id); + printk(KERN_INFO "PCI: slot=%d id=%08x\n", slot, (int) id); pci_slotmask |= 0x1 << slot; pcibios_assign_resource_slot(slot); pcibios_enable_slot(slot); @@ -290,7 +290,7 @@ int slot; #ifdef DEBUGPCI - printk("pcibios_init()\n"); + printk(KERN_DEBUG "pcibios_init()\n"); #endif pci_resetbus(); @@ -302,7 +302,7 @@ */ rp = (volatile unsigned long *) COMEM_BASE; if ((rp[LREG(COMEM_LBUSCFG)] & 0xff) != 0x50) { - printk("PCI: no PCI bus present\n"); + printk(KERN_INFO "PCI: no PCI bus present\n"); return(0); } @@ -317,11 +317,11 @@ rp[LREG(COMEM_PCIBUS)] = 0; /* Clear bus */ id = rp[LREG(COMEM_PCIBUS)]; if ((id == 0) || ((id & 0xffff0000) == (sel & 0xffff0000))) { - printk("PCI: no PCI bus bridge present\n"); + printk(KERN_INFO "PCI: no PCI bus bridge present\n"); return(0); } - printk("PCI: bridge device at slot=%d id=%08x\n", slot, (int) id); + printk(KERN_INFO "PCI: bridge device at slot=%d id=%08x\n", slot, (int) id); pci_slotmask |= 0x1 << slot; pci_shmemaddr = pci_membase; pcibios_assign_resource_slot(slot); @@ -332,7 +332,7 @@ /* Get PCI irq for local vectoring */ if (request_irq(COMEM_IRQ, pci_interrupt, 0, "PCI bridge", NULL)) { - printk("PCI: failed to acquire interrupt %d\n", COMEM_IRQ); + printk(KERN_WARNING "PCI: failed to acquire interrupt %d\n", COMEM_IRQ); } else { mcf_autovector(COMEM_IRQ); } @@ -379,7 +379,7 @@ void pcibios_update_resource(struct pci_dev *dev, struct resource *root, struct resource *r, int resource) { - printk("%s(%d): no support for changing PCI resources...\n", + printk(KERN_WARNING "%s(%d): no support for changing PCI resources...\n", __FILE__, __LINE__); } @@ -401,7 +401,7 @@ volatile unsigned char *bp; #ifdef DEBUGIO - printk("pci_outb(val=%02x,addr=%x)\n", val, addr); + printk(KERN_DEBUG "pci_outb(val=%02x,addr=%x)\n", val, addr); #endif rp = (volatile unsigned long *) COMEM_BASE; @@ -419,7 +419,7 @@ volatile unsigned short *sp; #ifdef DEBUGIO - printk("pci_outw(val=%04x,addr=%x)", val, addr); + printk(KERN_DEBUG "pci_outw(val=%04x,addr=%x)", val, addr); #endif rp = (volatile unsigned long *) COMEM_BASE; @@ -439,7 +439,7 @@ volatile unsigned int *lp; #ifdef DEBUGIO - printk("pci_outl(val=%08x,addr=%x)\n", val, addr); + printk(KERN_DEBUG "pci_outl(val=%08x,addr=%x)\n", val, addr); #endif rp = (volatile unsigned long *) COMEM_BASE; @@ -470,7 +470,7 @@ unsigned char val; #ifdef DEBUGIO - printk("pci_inb(addr=%x)", addr); + printk(KERN_DEBUG "pci_inb(addr=%x)", addr); #endif rp = (volatile unsigned long *) COMEM_BASE; @@ -501,7 +501,7 @@ unsigned short val; #ifdef DEBUGIO - printk("pci_inw(addr=%x)", addr); + printk(KERN_DEBUG "pci_inw(addr=%x)", addr); #endif rp = (volatile unsigned long *) COMEM_BASE; @@ -514,7 +514,7 @@ if (pci_byteswap) val = ((val & 0xff) << 8) | ((val >> 8) & 0xff); #ifdef DEBUGIO - printk("=%04x\n", val); + printk(KERN_DEBUG "=%04x\n", val); #endif return(val); } @@ -528,7 +528,7 @@ unsigned int val; #ifdef DEBUGIO - printk("pci_inl(addr=%x)", addr); + printk(KERN_DEBUG "pci_inl(addr=%x)", addr); #endif rp = (volatile unsigned long *) COMEM_BASE; @@ -541,7 +541,7 @@ ((val & 0x00ff0000) >> 8) | (val >> 24); #ifdef DEBUGIO - printk("=%08x\n", val); + printk(KERN_DEBUG "=%08x\n", val); #endif return(val); } @@ -556,7 +556,7 @@ unsigned int a = (unsigned int) addr; #ifdef DEBUGIO - printk("pci_outsb(addr=%x,buf=%x,len=%d)\n", (int)addr, (int)buf, len); + printk(KERN_DEBUG "pci_outsb(addr=%x,buf=%x,len=%d)\n", (int)addr, (int)buf, len); #endif rp = (volatile unsigned long *) COMEM_BASE; @@ -580,7 +580,7 @@ unsigned int a = (unsigned int) addr; #ifdef DEBUGIO - printk("pci_outsw(addr=%x,buf=%x,len=%d)\n", (int)addr, (int)buf, len); + printk(KERN_DEBUG "pci_outsw(addr=%x,buf=%x,len=%d)\n", (int)addr, (int)buf, len); #endif rp = (volatile unsigned long *) COMEM_BASE; @@ -608,7 +608,7 @@ unsigned int a = (unsigned int) addr; #ifdef DEBUGIO - printk("pci_outsl(addr=%x,buf=%x,len=%d)\n", (int)addr, (int)buf, len); + printk(KERN_DEBUG "pci_outsl(addr=%x,buf=%x,len=%d)\n", (int)addr, (int)buf, len); #endif rp = (volatile unsigned long *) COMEM_BASE; @@ -636,7 +636,7 @@ unsigned int a = (unsigned int) addr; #ifdef DEBUGIO - printk("pci_insb(addr=%x,buf=%x,len=%d)\n", (int)addr, (int)buf, len); + printk(KERN_DEBUG "pci_insb(addr=%x,buf=%x,len=%d)\n", (int)addr, (int)buf, len); #endif rp = (volatile unsigned long *) COMEM_BASE; @@ -660,7 +660,7 @@ unsigned int a = (unsigned int) addr; #ifdef DEBUGIO - printk("pci_insw(addr=%x,buf=%x,len=%d)\n", (int)addr, (int)buf, len); + printk(KERN_DEBUG "pci_insw(addr=%x,buf=%x,len=%d)\n", (int)addr, (int)buf, len); #endif rp = (volatile unsigned long *) COMEM_BASE; @@ -688,7 +688,7 @@ unsigned int a = (unsigned int) addr; #ifdef DEBUGIO - printk("pci_insl(addr=%x,buf=%x,len=%d)\n", (int)addr, (int)buf, len); + printk(KERN_DEBUG "pci_insl(addr=%x,buf=%x,len=%d)\n", (int)addr, (int)buf, len); #endif rp = (volatile unsigned long *) COMEM_BASE; @@ -725,7 +725,7 @@ int i; #ifdef DEBUGIO - printk("pci_request_irq(irq=%d,handler=%x,flags=%x,device=%s," + printk(KERN_DEBUG "pci_request_irq(irq=%d,handler=%x,flags=%x,device=%s," "dev_id=%x)\n", irq, (int) handler, (int) flags, device, (int) dev_id); #endif @@ -757,7 +757,7 @@ int i; #ifdef DEBUGIO - printk("pci_free_irq(irq=%d,dev_id=%x)\n", irq, (int) dev_id); + printk(KERN_DEBUG "pci_free_irq(irq=%d,dev_id=%x)\n", irq, (int) dev_id); #endif if (dev_id == (void *) NULL) @@ -781,7 +781,7 @@ int i; #ifdef DEBUGIO - printk("pci_interrupt(irq=%d,id=%x,fp=%x)\n", irq, (int) id, (int) fp); + printk(KERN_DEBUG "pci_interrupt(irq=%d,id=%x,fp=%x)\n", irq, (int) id, (int) fp); #endif for (i = 0; (i < COMEM_MAXPCI); i++) { @@ -809,7 +809,7 @@ int i, j, nrslots; #ifdef DEBUGIO - printk("pci_bmalloc(size=%d)\n", size); + printk(KERN_DEBUG "pci_bmalloc(size=%d)\n", size); #endif if (size <= 0) @@ -841,7 +841,7 @@ int i, j, nrslots; #ifdef DEBUGIO - printk("pci_bmfree(mp=%x,size=%d)\n", (int) mp, size); + printk(KERN_DEBUG "pci_bmfree(mp=%x,size=%d)\n", (int) mp, size); #endif nrslots = size / PCI_MEMSLOTSIZE; @@ -859,12 +859,12 @@ unsigned long l; #ifdef DEBUGIO - printk("pci_virt_to_bus(address=%x)", (int) address); + printk(KERN_DEBUG "pci_virt_to_bus(address=%x)", (int) address); #endif l = ((unsigned long) address) - COMEM_BASE; #ifdef DEBUGIO - printk("=%x\n", (int) (l+pci_shmemaddr)); + printk(KERN_DEBUG "=%x\n", (int) (l+pci_shmemaddr)); #endif return(l + pci_shmemaddr); } @@ -876,12 +876,12 @@ unsigned long l; #ifdef DEBUGIO - printk("pci_bus_to_virt(address=%x)", (int) address); + printk(KERN_DEBUG "pci_bus_to_virt(address=%x)", (int) address); #endif l = address - pci_shmemaddr; #ifdef DEBUGIO - printk("=%x\n", (int) (address + COMEM_BASE)); + printk(KERN_DEBUG "=%x\n", (int) (address + COMEM_BASE)); #endif return((void *) (address + COMEM_BASE)); } @@ -895,7 +895,7 @@ int i, j; #ifdef DEBUGIO - printk("pci_bmcpyto(dst=%x,src=%x,len=%d)\n", (int)dst, (int)src, len); + printk(KERN_DEBUG "pci_bmcpyto(dst=%x,src=%x,len=%d)\n", (int)dst, (int)src, len); #endif dp = (unsigned long *) dst; @@ -903,13 +903,13 @@ i = len >> 2; #if 0 - printk("DATA:"); + printk(KERN_INFO "DATA:"); scp = (unsigned char *) sp; for (i = 0; (i < len); i++) { - if ((i % 16) == 0) printk("\n%04x: ", i); - printk("%02x ", *scp++); + if ((i % 16) == 0) printk(KERN_INFO "\n%04x: ", i); + printk(KERN_INFO "%02x ", *scp++); } - printk("\n"); + printk(KERN_INFO "\n"); #endif for (j = 0; (i >= 0); i--, j++) { @@ -936,7 +936,7 @@ int i; #ifdef DEBUGIO - printk("pci_bmcpyfrom(dst=%x,src=%x,len=%d)\n",(int)dst,(int)src,len); + printk(KERN_DEBUG "pci_bmcpyfrom(dst=%x,src=%x,len=%d)\n",(int)dst,(int)src,len); #endif dp = (unsigned long *) dst; @@ -958,13 +958,13 @@ } #if 0 - printk("DATA:"); + printk(KERN_INFO "DATA:"); dcp = (unsigned char *) dst; for (i = 0; (i < len); i++) { - if ((i % 16) == 0) printk("\n%04x: ", i); - printk("%02x ", *dcp++); + if ((i % 16) == 0) printk(KERN_INFO "\n%04x: ", i); + printk(KERN_INFO "%02x ", *dcp++); } - printk("\n"); + printk(KERN_INFO "\n"); #endif } diff -urN linux-2.5.75/arch/m68knommu/kernel/process.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/kernel/process.c --- linux-2.5.75/arch/m68knommu/kernel/process.c 2003-07-10 16:06:03.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/kernel/process.c 2003-07-11 12:50:50.000000000 -0400 @@ -88,17 +88,17 @@ void show_regs(struct pt_regs * regs) { - printk("\n"); - printk("Format %02x Vector: %04x PC: %08lx Status: %04x %s\n", + printk(KERN_NOTICE "\n"); + printk(KERN_NOTICE "Format %02x Vector: %04x PC: %08lx Status: %04x %s\n", regs->format, regs->vector, regs->pc, regs->sr, print_tainted()); - printk("ORIG_D0: %08lx D0: %08lx A2: %08lx A1: %08lx\n", + printk(KERN_NOTICE "ORIG_D0: %08lx D0: %08lx A2: %08lx A1: %08lx\n", regs->orig_d0, regs->d0, regs->a2, regs->a1); - printk("A0: %08lx D5: %08lx D4: %08lx\n", + printk(KERN_NOTICE "A0: %08lx D5: %08lx D4: %08lx\n", regs->a0, regs->d5, regs->d4); - printk("D3: %08lx D2: %08lx D1: %08lx\n", + printk(KERN_NOTICE "D3: %08lx D2: %08lx D1: %08lx\n", regs->d3, regs->d2, regs->d1); if (!(regs->sr & PS_S)) - printk("USP: %08lx\n", rdusp()); + printk(KERN_NOTICE "USP: %08lx\n", rdusp()); } /* @@ -321,58 +321,58 @@ unsigned char *tp; int i; - printk("\nCURRENT PROCESS:\n\n"); - printk("COMM=%s PID=%d\n", current->comm, current->pid); + printk(KERN_EMERG "\nCURRENT PROCESS:\n\n"); + printk(KERN_EMERG "COMM=%s PID=%d\n", current->comm, current->pid); if (current->mm) { - printk("TEXT=%08x-%08x DATA=%08x-%08x BSS=%08x-%08x\n", + printk(KERN_EMERG "TEXT=%08x-%08x DATA=%08x-%08x BSS=%08x-%08x\n", (int) current->mm->start_code, (int) current->mm->end_code, (int) current->mm->start_data, (int) current->mm->end_data, (int) current->mm->end_data, (int) current->mm->brk); - printk("USER-STACK=%08x KERNEL-STACK=%08x\n\n", + printk(KERN_EMERG "USER-STACK=%08x KERNEL-STACK=%08x\n\n", (int) current->mm->start_stack, (int)(((unsigned long) current) + KTHREAD_SIZE)); } - printk("PC: %08lx\n", fp->pc); - printk("SR: %08lx SP: %08lx\n", (long) fp->sr, (long) fp); - printk("d0: %08lx d1: %08lx d2: %08lx d3: %08lx\n", + printk(KERN_EMERG "PC: %08lx\n", fp->pc); + printk(KERN_EMERG "SR: %08lx SP: %08lx\n", (long) fp->sr, (long) fp); + printk(KERN_EMERG "d0: %08lx d1: %08lx d2: %08lx d3: %08lx\n", fp->d0, fp->d1, fp->d2, fp->d3); - printk("d4: %08lx d5: %08lx a0: %08lx a1: %08lx\n", + printk(KERN_EMERG "d4: %08lx d5: %08lx a0: %08lx a1: %08lx\n", fp->d4, fp->d5, fp->a0, fp->a1); - printk("\nUSP: %08x TRAPFRAME: %08x\n", (unsigned int) rdusp(), + printk(KERN_EMERG "\nUSP: %08x TRAPFRAME: %08x\n", (unsigned int) rdusp(), (unsigned int) fp); - printk("\nCODE:"); + printk(KERN_EMERG "\nCODE:"); tp = ((unsigned char *) fp->pc) - 0x20; for (sp = (unsigned long *) tp, i = 0; (i < 0x40); i += 4) { if ((i % 0x10) == 0) - printk("\n%08x: ", (int) (tp + i)); - printk("%08x ", (int) *sp++); + printk(KERN_EMERG "\n%08x: ", (int) (tp + i)); + printk(KERN_EMERG "%08x ", (int) *sp++); } - printk("\n"); + printk(KERN_EMERG "\n"); - printk("\nKERNEL STACK:"); + printk(KERN_EMERG "\nKERNEL STACK:"); tp = ((unsigned char *) fp) - 0x40; for (sp = (unsigned long *) tp, i = 0; (i < 0xc0); i += 4) { if ((i % 0x10) == 0) - printk("\n%08x: ", (int) (tp + i)); - printk("%08x ", (int) *sp++); + printk(KERN_EMERG "\n%08x: ", (int) (tp + i)); + printk(KERN_EMERG "%08x ", (int) *sp++); } - printk("\n"); - printk("\n"); + printk(KERN_EMERG "\n"); + printk(KERN_EMERG "\n"); - printk("\nUSER STACK:"); + printk(KERN_EMERG "\nUSER STACK:"); tp = (unsigned char *) (rdusp() - 0x10); for (sp = (unsigned long *) tp, i = 0; (i < 0x80); i += 4) { if ((i % 0x10) == 0) - printk("\n%08x: ", (int) (tp + i)); - printk("%08x ", (int) *sp++); + printk(KERN_EMERG "\n%08x: ", (int) (tp + i)); + printk(KERN_EMERG "%08x ", (int) *sp++); } - printk("\n\n"); + printk(KERN_EMERG "\n\n"); } /* diff -urN linux-2.5.75/arch/m68knommu/kernel/setup.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/kernel/setup.c --- linux-2.5.75/arch/m68knommu/kernel/setup.c 2003-07-10 16:12:10.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/kernel/setup.c 2003-07-11 12:50:50.000000000 -0400 @@ -164,57 +164,57 @@ config_BSP(&command_line[0], sizeof(command_line)); - printk("\x0F\r\n\nuClinux/" CPU "\n"); + printk(KERN_INFO "\x0F\r\n\nuClinux/" CPU "\n"); #ifdef CONFIG_UCDIMM - printk("uCdimm by Lineo, Inc. \n"); + printk(KERN_INFO "uCdimm by Lineo, Inc. \n"); #endif #ifdef CONFIG_M68VZ328 - printk("M68VZ328 support by Evan Stawnyczy \n"); + printk(KERN_INFO "M68VZ328 support by Evan Stawnyczy \n"); #endif #ifdef CONFIG_COLDFIRE - printk("COLDFIRE port done by Greg Ungerer, gerg@snapgear.com\n"); + printk(KERN_INFO "COLDFIRE port done by Greg Ungerer, gerg@snapgear.com\n"); #ifdef CONFIG_M5307 - printk("Modified for M5307 by Dave Miller, dmiller@intellistor.com\n"); + printk(KERN_INFO "Modified for M5307 by Dave Miller, dmiller@intellistor.com\n"); #endif #ifdef CONFIG_ELITE - printk("Modified for M5206eLITE by Rob Scott, rscott@mtrob.fdns.net\n"); + printk(KERN_INFO "Modified for M5206eLITE by Rob Scott, rscott@mtrob.fdns.net\n"); #endif #ifdef CONFIG_TELOS - printk("Modified for Omnia ToolVox by James D. Schettine, james@telos-systems.com\n"); + printk(KERN_INFO "Modified for Omnia ToolVox by James D. Schettine, james@telos-systems.com\n"); #endif #endif - printk("Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne\n"); + printk(KERN_INFO "Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne\n"); #if defined( CONFIG_PILOT ) && defined( CONFIG_M68328 ) - printk("TRG SuperPilot FLASH card support \n"); + printk(KERN_INFO "TRG SuperPilot FLASH card support \n"); #endif #if defined( CONFIG_PILOT ) && defined( CONFIG_M68EZ328 ) - printk("PalmV support by Lineo Inc. \n"); + printk(KERN_INFO "PalmV support by Lineo Inc. \n"); #endif #ifdef CONFIG_M68EZ328ADS - printk("M68EZ328ADS board support (C) 1999 Vladimir Gurevich \n"); + printk(KERN_INFO "M68EZ328ADS board support (C) 1999 Vladimir Gurevich \n"); #endif #ifdef CONFIG_ALMA_ANS - printk("Alma Electronics board support (C) 1999 Vladimir Gurevich \n"); + printk(KERN_INFO "Alma Electronics board support (C) 1999 Vladimir Gurevich \n"); #endif #if defined (CONFIG_M68360) - printk("QUICC port done by SED Systems ,\n"); - printk("based on 2.0.38 port by Lineo Inc. .\n"); + printk(KERN_INFO "QUICC port done by SED Systems ,\n"); + printk(KERN_INFO "based on 2.0.38 port by Lineo Inc. .\n"); #endif #ifdef CONFIG_DRAGEN2 - printk("DragonEngine II board support by Georges Menie\n"); + printk(KERN_INFO "DragonEngine II board support by Georges Menie\n"); #endif #ifdef DEBUG - printk("KERNEL -> TEXT=0x%06x-0x%06x DATA=0x%06x-0x%06x " + printk(KERN_DEBUG "KERNEL -> TEXT=0x%06x-0x%06x DATA=0x%06x-0x%06x " "BSS=0x%06x-0x%06x\n", (int) &_stext, (int) &_etext, (int) &_sdata, (int) &_edata, (int) &_sbss, (int) &_ebss); - printk("KERNEL -> ROMFS=0x%06x-0x%06x MEM=0x%06x-0x%06x " + printk(KERN_DEBUG "KERNEL -> ROMFS=0x%06x-0x%06x MEM=0x%06x-0x%06x " "STACK=0x%06x-0x%06x\n", #ifdef CAT_ROMARRAY (int) romarray, ((int) romarray) + romarray[2], @@ -232,7 +232,7 @@ #ifdef DEBUG if (strlen(*cmdline_p)) - printk("Command line: '%s'\n", *cmdline_p); + printk(KERN_DEBUG "Command line: '%s'\n", *cmdline_p); #endif #ifdef CONFIG_CONSOLE diff -urN linux-2.5.75/arch/m68knommu/kernel/signal.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/kernel/signal.c --- linux-2.5.75/arch/m68knommu/kernel/signal.c 2003-07-10 16:12:09.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/kernel/signal.c 2003-07-11 12:50:50.000000000 -0400 @@ -605,7 +605,7 @@ struct pt_regs *tregs = (struct pt_regs *)((ulong)regs + regs->stkadj); #if DEBUG - printk("Performing stackadjust=%04x\n", regs->stkadj); + printk(KERN_DEBUG "Performing stackadjust=%04x\n", regs->stkadj); #endif /* This must be copied with decreasing addresses to handle overlaps. */ @@ -674,7 +674,7 @@ struct pt_regs *tregs = (struct pt_regs *)((ulong)regs + regs->stkadj); #if DEBUG - printk("Performing stackadjust=%04x\n", regs->stkadj); + printk(KERN_DEBUG "Performing stackadjust=%04x\n", regs->stkadj); #endif /* This must be copied with decreasing addresses to handle overlaps. */ diff -urN linux-2.5.75/arch/m68knommu/kernel/traps.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/kernel/traps.c --- linux-2.5.75/arch/m68knommu/kernel/traps.c 2003-07-10 16:08:24.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/kernel/traps.c 2003-07-11 12:50:50.000000000 -0400 @@ -72,15 +72,15 @@ return; console_verbose(); - printk("%s: %08x\n",str,nr); - printk("PC: [<%08lx>]\nSR: %04x SP: %p a2: %08lx\n", + printk(KERN_EMERG "%s: %08x\n",str,nr); + printk(KERN_EMERG "PC: [<%08lx>]\nSR: %04x SP: %p a2: %08lx\n", fp->pc, fp->sr, fp, fp->a2); - printk("d0: %08lx d1: %08lx d2: %08lx d3: %08lx\n", + printk(KERN_EMERG "d0: %08lx d1: %08lx d2: %08lx d3: %08lx\n", fp->d0, fp->d1, fp->d2, fp->d3); - printk("d4: %08lx d5: %08lx a0: %08lx a1: %08lx\n", + printk(KERN_EMERG "d4: %08lx d5: %08lx a0: %08lx a1: %08lx\n", fp->d4, fp->d5, fp->a0, fp->a1); - printk("Process %s (pid: %d, stackpage=%08lx)\n", + printk(KERN_EMERG "Process %s (pid: %d, stackpage=%08lx)\n", current->comm, current->pid, PAGE_SIZE+(unsigned long)current); show_stack(NULL, (unsigned long *)fp); do_exit(SIGSEGV); @@ -93,12 +93,12 @@ current->thread.esp0 = (unsigned long) fp; #if DEBUG - printk ("*** Bus Error *** Format is %x\n", fp->ptregs.format); + printk (KERN_DEBUG "*** Bus Error *** Format is %x\n", fp->ptregs.format); #endif die_if_kernel("bad frame format",&fp->ptregs,0); #if DEBUG - printk("Unknown SIGSEGV - 4\n"); + printk(KERN_DEBUG "Unknown SIGSEGV - 4\n"); #endif force_sig(SIGSEGV, current); } @@ -119,16 +119,16 @@ addr = (unsigned long) esp; endstack = (unsigned long *) PAGE_ALIGN(addr); - printk("Stack from %08lx:", (unsigned long)stack); + printk(KERN_EMERG "Stack from %08lx:", (unsigned long)stack); for (i = 0; i < kstack_depth_to_print; i++) { if (stack + 1 > endstack) break; if (i % 8 == 0) - printk("\n "); - printk(" %08lx", *stack++); + printk(KERN_EMERG "\n "); + printk(KERN_EMERG " %08lx", *stack++); } - printk("\nCall Trace:"); + printk(KERN_EMERG "\nCall Trace:"); i = 0; while (stack + 1 <= endstack) { addr = *stack++; @@ -143,26 +143,26 @@ if (((addr >= (unsigned long) &_start) && (addr <= (unsigned long) &_etext))) { if (i % 4 == 0) - printk("\n "); - printk(" [<%08lx>]", addr); + printk(KERN_EMERG "\n "); + printk(KERN_EMERG " [<%08lx>]", addr); i++; } } - printk("\n"); + printk(KERN_EMERG "\n"); } void bad_super_trap(struct frame *fp) { console_verbose(); if (fp->ptregs.vector < 4*sizeof(vec_names)/sizeof(vec_names[0])) - printk ("*** %s *** FORMAT=%X\n", + printk (KERN_WARNING "*** %s *** FORMAT=%X\n", vec_names[(fp->ptregs.vector) >> 2], fp->ptregs.format); else - printk ("*** Exception %d *** FORMAT=%X\n", + printk (KERN_WARNING "*** Exception %d *** FORMAT=%X\n", (fp->ptregs.vector) >> 2, fp->ptregs.format); - printk ("Current process id is %d\n", current->pid); + printk (KERN_WARNING "Current process id is %d\n", current->pid); die_if_kernel("BAD KERNEL TRAP", &fp->ptregs, 0); } @@ -297,7 +297,7 @@ void show_trace_task(struct task_struct *tsk) { - printk("STACK ksp=0x%lx, usp=0x%lx\n", tsk->thread.ksp, tsk->thread.usp); + printk(KERN_WARNING "STACK ksp=0x%lx, usp=0x%lx\n", tsk->thread.ksp, tsk->thread.usp); } #ifdef CONFIG_M68KFPU_EMU diff -urN linux-2.5.75/arch/m68knommu/mm/fault.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/mm/fault.c --- linux-2.5.75/arch/m68knommu/mm/fault.c 2003-07-10 16:07:38.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/mm/fault.c 2003-07-11 12:50:50.000000000 -0400 @@ -36,7 +36,7 @@ unsigned long error_code) { #ifdef DEBUG - printk ("regs->sr=%#x, regs->pc=%#lx, address=%#lx, %ld\n", + printk (KERN_DEBUG "regs->sr=%#x, regs->pc=%#lx, address=%#lx, %ld\n", regs->sr, regs->pc, address, error_code); #endif @@ -48,7 +48,7 @@ printk(KERN_ALERT "Unable to handle kernel NULL pointer dereference"); } else printk(KERN_ALERT "Unable to handle kernel access"); - printk(" at virtual address %08lx\n",address); + printk(KERN_ALERT " at virtual address %08lx\n",address); die_if_kernel("Oops", regs, error_code); do_exit(SIGKILL); diff -urN linux-2.5.75/arch/m68knommu/mm/init.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/mm/init.c --- linux-2.5.75/arch/m68knommu/mm/init.c 2003-07-10 16:12:14.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/mm/init.c 2003-07-11 12:50:50.000000000 -0400 @@ -75,7 +75,7 @@ int free = 0, total = 0, reserved = 0, shared = 0; int cached = 0; - printk("\nMem-info:\n"); + printk(KERN_INFO "\nMem-info:\n"); show_free_areas(); i = max_mapnr; while (i-- > 0) { @@ -89,11 +89,11 @@ else shared += page_count(mem_map+i) - 1; } - printk("%d pages of RAM\n",total); - printk("%d free pages\n",free); - printk("%d reserved pages\n",reserved); - printk("%d pages shared\n",shared); - printk("%d pages swap cached\n",cached); + printk(KERN_INFO "%d pages of RAM\n",total); + printk(KERN_INFO "%d free pages\n",free); + printk(KERN_INFO "%d reserved pages\n",reserved); + printk(KERN_INFO "%d pages shared\n",shared); + printk(KERN_INFO "%d pages swap cached\n",cached); } extern unsigned long memory_start; @@ -117,7 +117,7 @@ unsigned long end_mem = memory_end & PAGE_MASK; #ifdef DEBUG - printk ("start_mem is %#lx\nvirtual_end is %#lx\n", + printk (KERN_DEBUG "start_mem is %#lx\nvirtual_end is %#lx\n", start_mem, end_mem); #endif @@ -136,9 +136,9 @@ set_fs (USER_DS); #ifdef DEBUG - printk ("before free_area_init\n"); + printk (KERN_DEBUG "before free_area_init\n"); - printk ("free_area_init -> start_mem is %#lx\nvirtual_end is %#lx\n", + printk (KERN_DEBUG "free_area_init -> start_mem is %#lx\nvirtual_end is %#lx\n", start_mem, end_mem); #endif @@ -165,7 +165,7 @@ unsigned long end_mem = memory_end; /* DAVIDM - this must not include kernel stack at top */ #ifdef DEBUG - printk("Mem_init: start=%lx, end=%lx\n", start_mem, end_mem); + printk(KERN_DEBUG "Mem_init: start=%lx, end=%lx\n", start_mem, end_mem); #endif end_mem &= PAGE_MASK; @@ -182,7 +182,7 @@ initk = (&__init_begin - &__init_end) >> 10; tmp = nr_free_pages() << PAGE_SHIFT; - printk("Memory available: %luk/%luk RAM, %luk/%luk ROM (%dk kernel code, %dk data)\n", + printk(KERN_INFO "Memory available: %luk/%luk RAM, %luk/%luk ROM (%dk kernel code, %dk data)\n", tmp >> 10, len >> 10, (rom_length > 0) ? ((rom_length >> 10) - codek) : 0, @@ -204,7 +204,7 @@ totalram_pages++; pages++; } - printk ("Freeing initrd memory: %dk freed\n", pages); + printk (KERN_NOTICE "Freeing initrd memory: %dk freed\n", pages); } #endif @@ -226,7 +226,7 @@ free_page(addr); totalram_pages++; } - printk("Freeing unused kernel memory: %ldk freed (0x%x - 0x%x)\n", + printk(KERN_NOTICE "Freeing unused kernel memory: %ldk freed (0x%x - 0x%x)\n", (addr - PAGE_ALIGN((long) &__init_begin)) >> 10, (int)(PAGE_ALIGN((unsigned long)(&__init_begin))), (int)(addr - PAGE_SIZE)); diff -urN linux-2.5.75/arch/m68knommu/platform/5307/ints.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/5307/ints.c --- linux-2.5.75/arch/m68knommu/platform/5307/ints.c 2003-07-10 16:06:59.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/5307/ints.c 2003-07-11 12:50:50.000000000 -0400 @@ -46,7 +46,7 @@ static irqreturn_t default_irq_handler(int irq, void *ptr, struct pt_regs *regs) { #if 1 - printk("%s(%d): default irq handler vec=%d [0x%x]\n", + printk(KERN_INFO "%s(%d): default irq handler vec=%d [0x%x]\n", __FILE__, __LINE__, irq, irq); #endif return(IRQ_HANDLED); @@ -93,7 +93,7 @@ if (!node->handler) return node; - printk("new_irq_node: out of nodes\n"); + printk(KERN_INFO "new_irq_node: out of nodes\n"); return NULL; } @@ -105,19 +105,19 @@ void *dev_id) { if (irq < 0 || irq >= NR_IRQS) { - printk("%s: Incorrect IRQ %d from %s\n", __FUNCTION__, + printk(KERN_WARNING "%s: Incorrect IRQ %d from %s\n", __FUNCTION__, irq, devname); return -ENXIO; } if (!(irq_list[irq].flags & IRQ_FLG_STD)) { if (irq_list[irq].flags & IRQ_FLG_LOCK) { - printk("%s: IRQ %d from %s is not replaceable\n", + printk(KERN_WARNING "%s: IRQ %d from %s is not replaceable\n", __FUNCTION__, irq, irq_list[irq].devname); return -EBUSY; } if (flags & IRQ_FLG_REPLACE) { - printk("%s: %s can't replace IRQ %d from %s\n", + printk(KERN_WARNING "%s: %s can't replace IRQ %d from %s\n", __FUNCTION__, devname, irq, irq_list[irq].devname); return -EBUSY; } @@ -139,12 +139,12 @@ void free_irq(unsigned int irq, void *dev_id) { if (irq >= NR_IRQS) { - printk("%s: Incorrect IRQ %d\n", __FUNCTION__, irq); + printk(KERN_WARNING "%s: Incorrect IRQ %d\n", __FUNCTION__, irq); return; } if (irq_list[irq].dev_id != dev_id) - printk("%s: Removing probably wrong IRQ %d from %s\n", + printk(KERN_WARNING "%s: Removing probably wrong IRQ %d from %s\n", __FUNCTION__, irq, irq_list[irq].devname); if (irq_list[irq].flags & IRQ_FLG_FAST) { @@ -168,7 +168,7 @@ unsigned long flags, const char *devname, void *dev_id) { if (irq > IRQ7) { - printk("%s: Incorrect IRQ %d from %s\n", + printk(KERN_WARNING "%s: Incorrect IRQ %d from %s\n", __FUNCTION__, irq, devname); return -ENXIO; } @@ -176,12 +176,12 @@ #if 0 if (!(irq_list[irq].flags & IRQ_FLG_STD)) { if (irq_list[irq].flags & IRQ_FLG_LOCK) { - printk("%s: IRQ %d from %s is not replaceable\n", + printk(KERN_WARNING "%s: IRQ %d from %s is not replaceable\n", __FUNCTION__, irq, irq_list[irq].devname); return -EBUSY; } if (!(flags & IRQ_FLG_REPLACE)) { - printk("%s: %s can't replace IRQ %d from %s\n", + printk(KERN_WARNING "%s: %s can't replace IRQ %d from %s\n", __FUNCTION__, devname, irq, irq_list[irq].devname); return -EBUSY; } @@ -198,12 +198,12 @@ void sys_free_irq(unsigned int irq, void *dev_id) { if (irq > IRQ7) { - printk("%s: Incorrect IRQ %d\n", __FUNCTION__, irq); + printk(KERN_WARNING "%s: Incorrect IRQ %d\n", __FUNCTION__, irq); return; } if (irq_list[irq].dev_id != dev_id) - printk("%s: Removing probably wrong IRQ %d from %s\n", + printk(KERN_WARNING "%s: Removing probably wrong IRQ %d from %s\n", __FUNCTION__, irq, irq_list[irq].devname); irq_list[irq].handler = (*mach_default_handler)[irq]; diff -urN linux-2.5.75/arch/m68knommu/platform/5307/timers.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/5307/timers.c --- linux-2.5.75/arch/m68knommu/platform/5307/timers.c 2003-07-10 16:15:43.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/5307/timers.c 2003-07-11 12:50:50.000000000 -0400 @@ -127,7 +127,7 @@ void coldfire_profile_init(void) { - printk("PROFILE: lodging TIMER2 @ %dHz as profile timer\n", PROFILEHZ); + printk(KERN_INFO "PROFILE: lodging TIMER2 @ %dHz as profile timer\n", PROFILEHZ); /* Set up TIMER 2 as high speed profile clock */ mcf_proftp = (volatile struct mcftimer *) (MCF_MBAR + MCFTIMER_BASE2); diff -urN linux-2.5.75/arch/m68knommu/platform/5307/vectors.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/5307/vectors.c --- linux-2.5.75/arch/m68knommu/platform/5307/vectors.c 2003-07-10 16:13:37.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/5307/vectors.c 2003-07-11 12:50:50.000000000 -0400 @@ -32,7 +32,7 @@ asmlinkage void dbginterrupt_c(struct frame *fp) { extern void dump(struct pt_regs *fp); - printk("%s(%d): BUS ERROR TRAP\n", __FILE__, __LINE__); + printk(KERN_DEBUG "%s(%d): BUS ERROR TRAP\n", __FILE__, __LINE__); dump((struct pt_regs *) fp); asm("halt"); } diff -urN linux-2.5.75/arch/m68knommu/platform/68328/config.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68328/config.c --- linux-2.5.75/arch/m68knommu/platform/68328/config.c 2003-07-10 16:15:45.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68328/config.c 2003-07-11 12:50:50.000000000 -0400 @@ -111,9 +111,9 @@ void config_BSP(char *command, int len) { - printk("\n68328 support D. Jeff Dionne \n"); - printk("68328 support Kenneth Albanowski \n"); - printk("68328/Pilot support Bernhard Kuhn \n"); + printk(KERN_INFO "\n68328 support D. Jeff Dionne \n"); + printk(KERN_INFO "68328 support Kenneth Albanowski \n"); + printk(KERN_INFO "68328/Pilot support Bernhard Kuhn \n"); mach_sched_init = BSP_sched_init; mach_tick = BSP_tick; diff -urN linux-2.5.75/arch/m68knommu/platform/68328/ints.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68328/ints.c --- linux-2.5.75/arch/m68knommu/platform/68328/ints.c 2003-07-10 16:07:00.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68328/ints.c 2003-07-11 12:50:50.000000000 -0400 @@ -145,18 +145,18 @@ unsigned long flags, const char *devname, void *dev_id) { if (irq >= NR_IRQS) { - printk ("%s: Unknown IRQ %d from %s\n", __FUNCTION__, irq, devname); + printk (KERN_ERR "%s: Unknown IRQ %d from %s\n", __FUNCTION__, irq, devname); return -ENXIO; } if (!(int_irq_list[irq].flags & IRQ_FLG_STD)) { if (int_irq_list[irq].flags & IRQ_FLG_LOCK) { - printk("%s: IRQ %d from %s is not replaceable\n", + printk(KERN_ERR "%s: IRQ %d from %s is not replaceable\n", __FUNCTION__, irq, int_irq_list[irq].devname); return -EBUSY; } if (flags & IRQ_FLG_REPLACE) { - printk("%s: %s can't replace IRQ %d from %s\n", + printk(KERN_ERR "%s: %s can't replace IRQ %d from %s\n", __FUNCTION__, devname, irq, int_irq_list[irq].devname); return -EBUSY; } @@ -175,12 +175,12 @@ void free_irq(unsigned int irq, void *dev_id) { if (irq >= NR_IRQS) { - printk ("%s: Unknown IRQ %d\n", __FUNCTION__, irq); + printk (KERN_ERR "%s: Unknown IRQ %d\n", __FUNCTION__, irq); return; } if (int_irq_list[irq].dev_id != dev_id) - printk("%s: removing probably wrong IRQ %d from %s\n", + printk(KERN_INFO "%s: removing probably wrong IRQ %d from %s\n", __FUNCTION__, irq, int_irq_list[irq].devname); int_irq_list[irq].handler = bad_interrupt; @@ -273,7 +273,7 @@ if (int_irq_list[irq].handler) { int_irq_list[irq].handler(irq, int_irq_list[irq].dev_id, fp); } else { - printk("unregistered interrupt %d!\nTurning it off in the IMR...\n", irq); + printk(KERN_ERR "unregistered interrupt %d!\nTurning it off in the IMR...\n", irq); IMR |= mask; } pend &= ~mask; diff -urN linux-2.5.75/arch/m68knommu/platform/68360/commproc.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68360/commproc.c --- linux-2.5.75/arch/m68knommu/platform/68360/commproc.c 2003-07-10 16:13:35.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68360/commproc.c 2003-07-11 12:50:50.000000000 -0400 @@ -213,7 +213,7 @@ request_irq(vec, handler, IRQ_FLG_LOCK, "timer", dev_id); /* if (cpm_vecs[vec].handler != 0) */ -/* printk("CPM interrupt %x replacing %x\n", */ +/* printk(KERN_INFO "CPM interrupt %x replacing %x\n", */ /* (uint)handler, (uint)cpm_vecs[vec].handler); */ /* cpm_vecs[vec].handler = handler; */ /* cpm_vecs[vec].dev_id = dev_id; */ diff -urN linux-2.5.75/arch/m68knommu/platform/68360/config.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68360/config.c --- linux-2.5.75/arch/m68knommu/platform/68360/config.c 2003-07-10 16:14:10.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68360/config.c 2003-07-11 12:50:50.000000000 -0400 @@ -181,12 +181,12 @@ } } - printk("\n68360 QUICC support (C) 2000 Lineo Inc.\n"); + printk(KERN_INFO "\n68360 QUICC support (C) 2000 Lineo Inc.\n"); #if defined(CONFIG_UCQUICC) && 0 - printk("uCquicc serial string [%s]\n",getserialnum()); + printk(KERN_INFO "uCquicc serial string [%s]\n",getserialnum()); p = scc1_hwaddr = gethwaddr(0); - printk("uCquicc hwaddr %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n", + printk(KERN_INFO "uCquicc hwaddr %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n", p[0], p[1], p[2], p[3], p[4], p[5]); p = getbenv("APPEND"); diff -urN linux-2.5.75/arch/m68knommu/platform/68360/ints.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68360/ints.c --- linux-2.5.75/arch/m68knommu/platform/68360/ints.c 2003-07-10 16:03:32.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68360/ints.c 2003-07-11 12:50:50.000000000 -0400 @@ -140,7 +140,7 @@ irq_node_t *cur; if (!node->dev_id) - printk("%s: Warning: dev_id of %s is zero\n", + printk(KERN_INFO "%s: Warning: dev_id of %s is zero\n", __FUNCTION__, node->devname); local_irq_save(flags); @@ -175,7 +175,7 @@ } } local_irq_restore(flags); - printk ("%s: tried to remove invalid irq\n", __FUNCTION__); + printk (KERN_INFO "%s: tried to remove invalid irq\n", __FUNCTION__); } #endif @@ -187,18 +187,18 @@ irq += (CPM_VECTOR_BASE<<4); if (irq >= INTERNAL_IRQS) { - printk ("%s: Unknown IRQ %d from %s\n", __FUNCTION__, irq, devname); + printk (KERN_ERR "%s: Unknown IRQ %d from %s\n", __FUNCTION__, irq, devname); return -ENXIO; } if (!(int_irq_list[irq].flags & IRQ_FLG_STD)) { if (int_irq_list[irq].flags & IRQ_FLG_LOCK) { - printk("%s: IRQ %d from %s is not replaceable\n", + printk(KERN_ERR "%s: IRQ %d from %s is not replaceable\n", __FUNCTION__, irq, int_irq_list[irq].devname); return -EBUSY; } if (flags & IRQ_FLG_REPLACE) { - printk("%s: %s can't replace IRQ %d from %s\n", + printk(KERN_ERR "%s: %s can't replace IRQ %d from %s\n", __FUNCTION__, devname, irq, int_irq_list[irq].devname); return -EBUSY; } @@ -219,12 +219,12 @@ void free_irq(unsigned int irq, void *dev_id) { if (irq >= INTERNAL_IRQS) { - printk ("%s: Unknown IRQ %d\n", __FUNCTION__, irq); + printk (KERN_ERR "%s: Unknown IRQ %d\n", __FUNCTION__, irq); return; } if (int_irq_list[irq].dev_id != dev_id) - printk("%s: removing probably wrong IRQ %d from %s\n", + printk(KERN_INFO "%s: removing probably wrong IRQ %d from %s\n", __FUNCTION__, irq, int_irq_list[irq].devname); int_irq_list[irq].handler = NULL; int_irq_list[irq].flags = IRQ_FLG_STD; @@ -245,7 +245,7 @@ void M68360_enable_irq(unsigned int irq) { if (irq >= INTERNAL_IRQS) { - printk("%s: Unknown IRQ %d\n", __FUNCTION__, irq); + printk(KERN_ERR "%s: Unknown IRQ %d\n", __FUNCTION__, irq); return; } @@ -259,7 +259,7 @@ void M68360_disable_irq(unsigned int irq) { if (irq >= INTERNAL_IRQS) { - printk("%s: Unknown IRQ %d\n", __FUNCTION__, irq); + printk(KERN_ERR "%s: Unknown IRQ %d\n", __FUNCTION__, irq); return; } @@ -317,7 +317,7 @@ kstat_cpu(0).irqs[irq]++; pquicc->intr_cisr = (1 << vec); /* indicate that irq has been serviced */ } else { - printk("unregistered interrupt %d!\nTurning it off in the CIMR...\n", irq); + printk(KERN_ERR "unregistered interrupt %d!\nTurning it off in the CIMR...\n", irq); /* *(volatile unsigned long *)0xfffff304 |= mask; */ pquicc->intr_cimr &= ~(1 << vec); num_spurious += 1; diff -urN linux-2.5.75/arch/m68knommu/platform/68EZ328/config.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68EZ328/config.c --- linux-2.5.75/arch/m68knommu/platform/68EZ328/config.c 2003-07-10 16:13:05.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68EZ328/config.c 2003-07-11 12:50:50.000000000 -0400 @@ -106,12 +106,12 @@ { unsigned char *p; - printk("\n68EZ328 DragonBallEZ support (C) 1999 Rt-Control, Inc\n"); + printk(KERN_INFO "\n68EZ328 DragonBallEZ support (C) 1999 Rt-Control, Inc\n"); #ifdef CONFIG_UCSIMM - printk("uCsimm serial string [%s]\n",getserialnum()); + printk(KERN_INFO "uCsimm serial string [%s]\n",getserialnum()); p = cs8900a_hwaddr = gethwaddr(0); - printk("uCsimm hwaddr %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n", + printk(KERN_INFO "uCsimm hwaddr %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n", p[0], p[1], p[2], p[3], p[4], p[5]); p = getbenv("APPEND"); diff -urN linux-2.5.75/arch/m68knommu/platform/68VZ328/de2/config.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68VZ328/de2/config.c --- linux-2.5.75/arch/m68knommu/platform/68VZ328/de2/config.c 2003-07-10 16:06:09.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68VZ328/de2/config.c 2003-07-11 12:55:07.000000000 -0400 @@ -185,7 +185,7 @@ void config_BSP(char *command, int size) { - printk("68VZ328 DragonBallVZ support (c) 2001 Lineo, Inc.\n"); + printk(KERN_INFO "68VZ328 DragonBallVZ support (c) 2001 Lineo, Inc.\n"); #if defined(CONFIG_BOOTPARAM) strncpy(command, CONFIG_BOOTPARAM_STRING, size); diff -urN linux-2.5.75/arch/m68knommu/platform/68VZ328/ucdimm/config.c linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68VZ328/ucdimm/config.c --- linux-2.5.75/arch/m68knommu/platform/68VZ328/ucdimm/config.c 2003-07-10 16:06:51.000000000 -0400 +++ linux-2.5.75-printk-arch-m68knommu/arch/m68knommu/platform/68VZ328/ucdimm/config.c 2003-07-11 12:50:51.000000000 -0400 @@ -99,11 +99,11 @@ { unsigned char *p; - printk("\n68VZ328 DragonBallVZ support (c) 2001 Lineo, Inc.\n"); + printk(KERN_INFO "\n68VZ328 DragonBallVZ support (c) 2001 Lineo, Inc.\n"); - printk("uCdimm serial string [%s]\n",getserialnum()); + printk(KERN_INFO "uCdimm serial string [%s]\n",getserialnum()); p = cs8900a_hwaddr = gethwaddr(0); - printk("uCdimm hwaddr %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n", + printk(KERN_INFO "uCdimm hwaddr %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n", p[0], p[1], p[2], p[3], p[4], p[5]); p = getbenv("APPEND"); if (p) strcpy(p,command);