Commit 494a66f3 authored by Nathan Lynch's avatar Nathan Lynch Committed by Michael Ellerman

powerpc/pseries/mobility: Set pr_fmt()

The pr_err() callsites in mobility.c already manually include a
"mobility:" prefix, let's make it official for the benefit of messages
to be added later.
Signed-off-by: default avatarNathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190627053044.9238-2-nathanl@linux.ibm.com
parent 6ec54363
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
* Copyright (C) 2010 IBM Corporation * Copyright (C) 2010 IBM Corporation
*/ */
#define pr_fmt(fmt) "mobility: " fmt
#include <linux/cpu.h> #include <linux/cpu.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/kobject.h> #include <linux/kobject.h>
...@@ -396,11 +399,11 @@ static int __init mobility_sysfs_init(void) ...@@ -396,11 +399,11 @@ static int __init mobility_sysfs_init(void)
rc = sysfs_create_file(mobility_kobj, &class_attr_migration.attr); rc = sysfs_create_file(mobility_kobj, &class_attr_migration.attr);
if (rc) if (rc)
pr_err("mobility: unable to create migration sysfs file (%d)\n", rc); pr_err("unable to create migration sysfs file (%d)\n", rc);
rc = sysfs_create_file(mobility_kobj, &class_attr_api_version.attr.attr); rc = sysfs_create_file(mobility_kobj, &class_attr_api_version.attr.attr);
if (rc) if (rc)
pr_err("mobility: unable to create api_version sysfs file (%d)\n", rc); pr_err("unable to create api_version sysfs file (%d)\n", rc);
return 0; return 0;
} }
......
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