Commit 00b0ac82 authored by Dave Jones's avatar Dave Jones

[PATCH] Add printk levels

parent 96289687
...@@ -260,7 +260,7 @@ static void do_update_one(void *unused) ...@@ -260,7 +260,7 @@ static void do_update_one(void *unused)
if (microcode[i].rev < rev) { if (microcode[i].rev < rev) {
spin_unlock_irqrestore(&microcode_update_lock, flags); spin_unlock_irqrestore(&microcode_update_lock, flags);
printk(KERN_ERR printk(KERN_INFO
"microcode: CPU%d not 'upgrading' to earlier revision" "microcode: CPU%d not 'upgrading' to earlier revision"
" %d (current=%d)\n", cpu_num, microcode[i].rev, rev); " %d (current=%d)\n", cpu_num, microcode[i].rev, rev);
return; return;
...@@ -268,7 +268,7 @@ static void do_update_one(void *unused) ...@@ -268,7 +268,7 @@ static void do_update_one(void *unused)
/* notify the caller of success on this cpu */ /* notify the caller of success on this cpu */
req->err = 0; req->err = 0;
spin_unlock_irqrestore(&microcode_update_lock, flags); spin_unlock_irqrestore(&microcode_update_lock, flags);
printk(KERN_ERR printk(KERN_INFO
"microcode: CPU%d already at revision" "microcode: CPU%d already at revision"
" %d (current=%d)\n", cpu_num, microcode[i].rev, rev); " %d (current=%d)\n", cpu_num, microcode[i].rev, rev);
return; return;
......
...@@ -482,7 +482,7 @@ void __init mem_init(void) ...@@ -482,7 +482,7 @@ void __init mem_init(void)
datasize = (unsigned long) &_edata - (unsigned long) &_etext; datasize = (unsigned long) &_edata - (unsigned long) &_etext;
initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin; initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin;
printk("Memory: %luk/%luk available (%dk kernel code, %dk reserved, %dk data, %dk init, %ldk highmem)\n", printk(KERN_INFO "Memory: %luk/%luk available (%dk kernel code, %dk reserved, %dk data, %dk init, %ldk highmem)\n",
(unsigned long) nr_free_pages() << (PAGE_SHIFT-10), (unsigned long) nr_free_pages() << (PAGE_SHIFT-10),
num_physpages << (PAGE_SHIFT-10), num_physpages << (PAGE_SHIFT-10),
codesize >> 10, codesize >> 10,
...@@ -584,14 +584,14 @@ void free_initmem(void) ...@@ -584,14 +584,14 @@ void free_initmem(void)
free_page(addr); free_page(addr);
totalram_pages++; totalram_pages++;
} }
printk ("Freeing unused kernel memory: %dk freed\n", (&__init_end - &__init_begin) >> 10); printk (KERN_INFO "Freeing unused kernel memory: %dk freed\n", (&__init_end - &__init_begin) >> 10);
} }
#ifdef CONFIG_BLK_DEV_INITRD #ifdef CONFIG_BLK_DEV_INITRD
void free_initrd_mem(unsigned long start, unsigned long end) void free_initrd_mem(unsigned long start, unsigned long end)
{ {
if (start < end) if (start < end)
printk ("Freeing initrd memory: %ldk freed\n", (end - start) >> 10); printk (KERN_INFO "Freeing initrd memory: %ldk freed\n", (end - start) >> 10);
for (; start < end; start += PAGE_SIZE) { for (; start < end; start += PAGE_SIZE) {
ClearPageReserved(virt_to_page(start)); ClearPageReserved(virt_to_page(start));
set_page_count(virt_to_page(start), 1); set_page_count(virt_to_page(start), 1);
......
...@@ -291,7 +291,7 @@ void pcibios_set_master(struct pci_dev *dev) ...@@ -291,7 +291,7 @@ void pcibios_set_master(struct pci_dev *dev)
lat = pcibios_max_latency; lat = pcibios_max_latency;
else else
return; return;
printk("PCI: Setting latency timer of device %s to %d\n", dev->slot_name, lat); printk(KERN_DEBUG "PCI: Setting latency timer of device %s to %d\n", dev->slot_name, lat);
pci_write_config_byte(dev, PCI_LATENCY_TIMER, lat); pci_write_config_byte(dev, PCI_LATENCY_TIMER, lat);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment