Skip to content

Commit

Permalink
powerpc/pseries/mobility: Set pr_fmt()
Browse files Browse the repository at this point in the history
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: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190627053044.9238-2-nathanl@linux.ibm.com
  • Loading branch information
Nathan Lynch authored and Michael Ellerman committed Jul 30, 2020
1 parent 6ec5436 commit 494a66f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions arch/powerpc/platforms/pseries/mobility.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* Copyright (C) 2010 IBM Corporation
*/


#define pr_fmt(fmt) "mobility: " fmt

#include <linux/cpu.h>
#include <linux/kernel.h>
#include <linux/kobject.h>
Expand Down Expand Up @@ -396,11 +399,11 @@ static int __init mobility_sysfs_init(void)

rc = sysfs_create_file(mobility_kobj, &class_attr_migration.attr);
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);
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;
}
Expand Down

0 comments on commit 494a66f

Please sign in to comment.