Skip to content

Commit

Permalink
mm/damon/vaddr: use pr_debug() for damon_va_three_regions() failure l…
Browse files Browse the repository at this point in the history
…ogging

Failure of 'damon_va_three_regions()' is logged using 'pr_err()'.  But,
the function can fail in legal situations.  To avoid making users be
surprised and to keep the kernel clean, this makes the log to be printed
using 'pr_debug()'.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: SeongJae Park <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
sjp38 authored and torvalds committed Jan 15, 2022
1 parent 70b8480 commit 251403f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/damon/vaddr.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static void __damon_va_init_regions(struct damon_ctx *ctx,
int i;

if (damon_va_three_regions(t, regions)) {
pr_err("Failed to get three regions of target %lu\n", t->id);
pr_debug("Failed to get three regions of target %lu\n", t->id);
return;
}

Expand Down

0 comments on commit 251403f

Please sign in to comment.