Messages in this thread Patch in this message | | | Date | Wed, 29 Dec 2004 01:49:51 +0100 (CET) | From | Jesper Juhl <> | Subject | [PATCH] add missing printk loglevel in mm/swapfile.c |
| |
in mm/swapfile.c a printk() is missing a loglevel. I believe the proper loglevel for this situation is KERN_ERR, so that's what the patch below sets -if you agree, please apply.
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
diff -up linux-2.6.10-orig/mm/swapfile.c linux-2.6.10/mm/swapfile.c --- linux-2.6.10-orig/mm/swapfile.c 2004-12-24 22:34:26.000000000 +0100 +++ linux-2.6.10/mm/swapfile.c 2004-12-29 01:42:01.000000000 +0100 @@ -1461,7 +1461,7 @@ asmlinkage long sys_swapon(const char __ else if (!memcmp("SWAPSPACE2",swap_header->magic.magic,10)) swap_header_version = 2; else { - printk("Unable to find swap-space signature\n"); + printk(KERN_ERR "Unable to find swap-space signature\n"); error = -EINVAL; goto bad_swap; }
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |