lkml.org 
[lkml]   [2011]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4] mm: improve THP printk messages
On Tue, 21 Jun 2011, Amerigo Wang wrote:

> 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

You're changing a printk() but not fixing the typos in it?


\
 
 \ /
  Last update: 2011-06-22 03:27    [W:0.147 / U:5.652 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site