lkml.org 
[lkml]   [2011]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/4] mm: improve THP printk messages
Date
As Andrea suggested, use "THP:" prefix to avoid
being confused with hugetlb.

Signed-off-by: WANG Cong <amwang@redhat.com>
---
mm/huge_memory.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index 126c96b..f9e720c 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -506,7 +506,7 @@ static int __init hugepage_init(void)
if (no_hugepage_init) {
err = 0;
transparent_hugepage_flags = 0;
- printk(KERN_INFO "hugepage: totally disabled\n");
+ printk(KERN_INFO "THP: totally disabled\n");
goto out;
}

@@ -514,19 +514,19 @@ static int __init hugepage_init(void)
err = -ENOMEM;
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 "THP: failed kobject create\n");
goto out;
}

err = sysfs_create_group(hugepage_kobj, &hugepage_attr_group);
if (err) {
- printk(KERN_ERR "hugepage: failed register hugeage group\n");
+ printk(KERN_ERR "THP: failed register hugeage group\n");
goto out;
}

err = sysfs_create_group(hugepage_kobj, &khugepaged_attr_group);
if (err) {
- printk(KERN_ERR "hugepage: failed register hugeage group\n");
+ printk(KERN_ERR "THP: failed register hugeage group\n");
goto out;
}
#endif
--
1.7.4.4


\
 
 \ /
  Last update: 2011-06-21 10:13    [W:0.124 / U:17.464 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site