[PATCH 0/2] x86/e820: Use pr_debug to avoid spamming dmesg log with debug messages

From: Heiner Kallweit
Date: Mon May 03 2021 - 15:38:24 EST


e820 emits quite some debug messages to the dmesg log. Let's restrict
this to cases where the debug output is actually requested. Switch to
pr_debug() for this purpose and make sure by checking the return code
that pr_cont() is only called if applicable. This would currently fail
if dynamic debugging is enabled because dynamic_pr_debug() has no
return value. So let's change this first.

Heiner Kallweit (2):
dyndbg: add pr_debug return value if dynamic debugging is enabled
x86/e820: Use pr_debug to avoid spamming dmesg log with debug messages

arch/x86/kernel/e820.c | 27 ++++++++++++++++-----------
include/linux/dynamic_debug.h | 14 +++++++++++---
lib/dynamic_debug.c | 7 +++++--
3 files changed, 32 insertions(+), 16 deletions(-)

--
2.31.1