mm: clean up transparent hugepage sysfs error messages
Subsystems (2)
PATCH v2 1/1 mm: clean up transparent hugepage sysfs error messages
This patch clarifies error messages and corrects a few typos in the transparent hugepage sysfs init code.
--- mm/huge_memory.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
mm/huge_memory.c +3 -3
@@ -574,19 +574,19 @@ static int __init hugepage_init_sysfs(struct kobject **hugepage_kobj) *hugepage_kobj =kobject_create_and_add ("transparent_hugepage" , mm_kobj);if (unlikely (!*hugepage_kobj)) { -printk (KERN_ERR "hugepage: failed kobject create\n" ); +printk (KERN_ERR "hugepage: failed to create transparent hugepage kobject\n" );return -ENOMEM ; } err =sysfs_create_group (*hugepage_kobj, &hugepage_attr_group);if (err) { -printk (KERN_ERR "hugepage: failed register hugeage group\n" ); +printk (KERN_ERR "hugepage: failed to register transparent hugepage group\n" ); goto delete_obj; } err =sysfs_create_group (*hugepage_kobj, &khugepaged_attr_group);if (err) { -printk (KERN_ERR "hugepage: failed register hugeage group\n" ); +printk (KERN_ERR "hugepage: failed to register transparent hugepage group\n" ); goto remove_hp_group; }
Signature · 7 lines
1.7.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 5 lines · Jeremy Eder
This patch clarifies error messages and corrects a few typos in the transparent hugepage sysfs init code.
Signed-off-by Jeremy Eder <[email protected]>---
Quoted 38 lines
mm/huge_memory.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)mm/huge_memory.c +3
-3@@ -574,19 +574,19 @@ static int __init hugepage_init_sysfs(struct kobject **hugepage_kobj) *hugepage_kobj =kobject_create_and_add ("transparent_hugepage" , mm_kobj);if (unlikely (!*hugepage_kobj)) { -printk (KERN_ERR "hugepage: failed kobject create\n" ); +printk (KERN_ERR "hugepage: failed to create transparent hugepage kobject\n" );return -ENOMEM ; } err =sysfs_create_group (*hugepage_kobj, &hugepage_attr_group);if (err) { -printk (KERN_ERR "hugepage: failed register hugeage group\n" ); +printk (KERN_ERR "hugepage: failed to register transparent hugepage group\n" ); goto delete_obj; } err =sysfs_create_group (*hugepage_kobj, &khugepaged_attr_group);if (err) { -printk (KERN_ERR "hugepage: failed register hugeage group\n" ); +printk (KERN_ERR "hugepage: failed to register transparent hugepage group\n" ); goto remove_hp_group; }Signature · 7 lines
1.7.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 4 lines · Jeremy Eder
This patch clarifies error messages and corrects a few typos in the transparent hugepage sysfs init code.
Signed-off-by Jeremy Eder <[email protected]>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>