powerpc/fadump: Trivial fix of spelling mistake, clean up message
authorColin Ian King <colin.king@canonical.com>
Mon, 27 Jun 2016 11:07:41 +0000 (12:07 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 28 Jun 2016 03:50:47 +0000 (13:50 +1000)
Fix trivial spelling mistake "rgistration". Also use pr_err()
instead of printk() and unsplit the string to keep it all on one
line.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
[mpe: Keep rc on the same line, splitting it doesn't help]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/fadump.c

index 3cb3b02a13dd14fdf43ddfe0261aed162db07774..f0664860753e28ee5eb29dd88aac9214494840f3 100644 (file)
@@ -1009,9 +1009,8 @@ static int fadump_invalidate_dump(struct fadump_mem_struct *fdm)
        } while (wait_time);
 
        if (rc) {
-               printk(KERN_ERR "Failed to invalidate firmware-assisted dump "
-                       "rgistration. unexpected error(%d).\n", rc);
-               return rc;
+               pr_err("Failed to invalidate firmware-assisted dump registration. Unexpected error (%d).\n", rc);
+               return rc
        }
        fw_dump.dump_active = 0;
        fdm_active = NULL;