mm/hugetlb: add a line break at the end of the format string
authorwangxuewen <wangxuewen@kylinos.cn>
Mon, 7 Apr 2025 10:30:17 +0000 (18:30 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 12 Apr 2025 00:32:40 +0000 (17:32 -0700)
Missing line break at the end of the format string.

Link: https://lkml.kernel.org/r/20250407103017.2979821-1-18810879172@163.com
Signed-off-by: wangxuewen <wangxuewen@kylinos.cn>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c

index ea065347866e2c7cdb97b9918a5247619407cb50..e3e6ac991b9c6bd53f5c0ebf6aa74ea9740592cf 100644 (file)
@@ -4647,7 +4647,7 @@ static void __init hugetlb_sysfs_init(void)
                err = hugetlb_sysfs_add_hstate(h, hugepages_kobj,
                                         hstate_kobjs, &hstate_attr_group);
                if (err)
-                       pr_err("HugeTLB: Unable to add hstate %s", h->name);
+                       pr_err("HugeTLB: Unable to add hstate %s\n", h->name);
        }
 
 #ifdef CONFIG_NUMA