mm: convert pr_warning to pr_warn
There are a mixture of pr_warning and pr_warn uses in mm. Use pr_warn consistently. Miscellanea: - Coalesce formats - Realign arguments Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Tejun Heo <tj@kernel.org> [percpu] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Цей коміт міститься в:

зафіксовано
Linus Torvalds

джерело
b11a7b9410
коміт
598d80914e
@@ -276,7 +276,7 @@ static void kmemleak_disable(void);
|
||||
* Print a warning and dump the stack trace.
|
||||
*/
|
||||
#define kmemleak_warn(x...) do { \
|
||||
pr_warning(x); \
|
||||
pr_warn(x); \
|
||||
dump_stack(); \
|
||||
kmemleak_warning = 1; \
|
||||
} while (0)
|
||||
@@ -543,7 +543,7 @@ static struct kmemleak_object *create_object(unsigned long ptr, size_t size,
|
||||
|
||||
object = kmem_cache_alloc(object_cache, gfp_kmemleak_mask(gfp));
|
||||
if (!object) {
|
||||
pr_warning("Cannot allocate a kmemleak_object structure\n");
|
||||
pr_warn("Cannot allocate a kmemleak_object structure\n");
|
||||
kmemleak_disable();
|
||||
return NULL;
|
||||
}
|
||||
@@ -764,7 +764,7 @@ static void add_scan_area(unsigned long ptr, size_t size, gfp_t gfp)
|
||||
|
||||
area = kmem_cache_alloc(scan_area_cache, gfp_kmemleak_mask(gfp));
|
||||
if (!area) {
|
||||
pr_warning("Cannot allocate a scan area\n");
|
||||
pr_warn("Cannot allocate a scan area\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -1515,7 +1515,7 @@ static void start_scan_thread(void)
|
||||
return;
|
||||
scan_thread = kthread_run(kmemleak_scan_thread, NULL, "kmemleak");
|
||||
if (IS_ERR(scan_thread)) {
|
||||
pr_warning("Failed to create the scan thread\n");
|
||||
pr_warn("Failed to create the scan thread\n");
|
||||
scan_thread = NULL;
|
||||
}
|
||||
}
|
||||
@@ -1874,8 +1874,8 @@ void __init kmemleak_init(void)
|
||||
scan_area_cache = KMEM_CACHE(kmemleak_scan_area, SLAB_NOLEAKTRACE);
|
||||
|
||||
if (crt_early_log > ARRAY_SIZE(early_log))
|
||||
pr_warning("Early log buffer exceeded (%d), please increase "
|
||||
"DEBUG_KMEMLEAK_EARLY_LOG_SIZE\n", crt_early_log);
|
||||
pr_warn("Early log buffer exceeded (%d), please increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE\n",
|
||||
crt_early_log);
|
||||
|
||||
/* the kernel is still in UP mode, so disabling the IRQs is enough */
|
||||
local_irq_save(flags);
|
||||
@@ -1960,7 +1960,7 @@ static int __init kmemleak_late_init(void)
|
||||
dentry = debugfs_create_file("kmemleak", S_IRUGO, NULL, NULL,
|
||||
&kmemleak_fops);
|
||||
if (!dentry)
|
||||
pr_warning("Failed to create the debugfs kmemleak file\n");
|
||||
pr_warn("Failed to create the debugfs kmemleak file\n");
|
||||
mutex_lock(&scan_mutex);
|
||||
start_scan_thread();
|
||||
mutex_unlock(&scan_mutex);
|
||||
|
Посилання в новій задачі
Заблокувати користувача