[PATCH 2/2] Bluetooth: Replaces printk with pr_debug in bt_dbg

From: Yuran Pereira
Date: Mon Nov 06 2023 - 17:26:36 EST


bt_dbg() uses printk, as opposed to other functions in this file
which use pr_* family of logging functions.

This patch changes that by replacing `printk(KERN_DEBUG` with
the equivalent pr_debug() call which makes the overall file
look more uniform and cleaner.

Signed-off-by: Yuran Pereira <yuran.pereira@xxxxxxxxxxx>
---
net/bluetooth/lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c
index 063032fe9c68..96ba39f8b461 100644
--- a/net/bluetooth/lib.c
+++ b/net/bluetooth/lib.c
@@ -329,7 +329,7 @@ void bt_dbg(const char *format, ...)
vaf.fmt = format;
vaf.va = &args;

- printk(KERN_DEBUG pr_fmt("%pV"), &vaf);
+ pr_debug("%pV", &vaf);

va_end(args);
}
--
2.25.1