add missing printk loglevel in mm/swapfile.c
authorJesper Juhl <juhl-lkml@dif.dk>
Wed, 11 Jan 2006 00:50:28 +0000 (01:50 +0100)
committerAdrian Bunk <bunk@r063144.stusta.swh.mhn.de>
Wed, 11 Jan 2006 00:50:28 +0000 (01:50 +0100)
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>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
mm/swapfile.c

index 6544565a7c0f6de28879dcee44e6fcb63c2a2659..d8a5afc8b2a3a417ade826173ce96a55f2ac0000 100644 (file)
@@ -1442,7 +1442,7 @@ asmlinkage long sys_swapon(const char __user * specialfile, int swap_flags)
        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;
        }