From 5706f1e77b9358b12180511d870f589852b9aed1 Mon Sep 17 00:00:00 2001 From: zeelog Date: Sun, 26 Mar 2023 23:05:42 +0200 Subject: [PATCH] binder: Silence some logspam Signed-off-by: Sorayukii --- drivers/android/binder_alloc.c | 10 ++++------ kernel/printk/printk.c | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c index abb13bcb50b5..66cc2adb91a1 100644 --- a/drivers/android/binder_alloc.c +++ b/drivers/android/binder_alloc.c @@ -233,9 +233,8 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate, } if (!vma && need_mm) { - binder_alloc_debug(BINDER_DEBUG_USER_ERROR, - "%d: binder_alloc_buf failed to map pages in userspace, no vma\n", - alloc->pid); + pr_debug("%d: binder_alloc_buf failed to map pages in userspace, no vma\n", + alloc->pid); goto err_no_vma; } @@ -415,9 +414,8 @@ static struct binder_buffer *binder_alloc_new_buf_locked( int ret; if (!binder_alloc_get_vma(alloc)) { - binder_alloc_debug(BINDER_DEBUG_USER_ERROR, - "%d: binder_alloc_buf, no vma\n", - alloc->pid); + pr_debug("%d: binder_alloc_buf, no vma\n", + alloc->pid); return ERR_PTR(-ESRCH); } diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 4cd57d6b1d99..a50f028cb6a3 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -2131,7 +2131,7 @@ void suspend_console(void) { if (!console_suspend_enabled) return; - printk("Suspending console(s) (use no_console_suspend to debug)\n"); + //printk("Suspending console(s) (use no_console_suspend to debug)\n"); console_lock(); console_suspended = 1; up_console_sem();