Skip to content

Commit 494a66f

Browse files
nathanlynchmpe
authored andcommitted
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: Nathan Lynch <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6ec5436 commit 494a66f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

arch/powerpc/platforms/pseries/mobility.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* Copyright (C) 2010 IBM Corporation
77
*/
88

9+
10+
#define pr_fmt(fmt) "mobility: " fmt
11+
912
#include <linux/cpu.h>
1013
#include <linux/kernel.h>
1114
#include <linux/kobject.h>
@@ -396,11 +399,11 @@ static int __init mobility_sysfs_init(void)
396399

397400
rc = sysfs_create_file(mobility_kobj, &class_attr_migration.attr);
398401
if (rc)
399-
pr_err("mobility: unable to create migration sysfs file (%d)\n", rc);
402+
pr_err("unable to create migration sysfs file (%d)\n", rc);
400403

401404
rc = sysfs_create_file(mobility_kobj, &class_attr_api_version.attr.attr);
402405
if (rc)
403-
pr_err("mobility: unable to create api_version sysfs file (%d)\n", rc);
406+
pr_err("unable to create api_version sysfs file (%d)\n", rc);
404407

405408
return 0;
406409
}

0 commit comments

Comments
 (0)