From 3fcb9c4ec2cba9a95262764d7044865aa4f3e713 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 9 Dec 2016 21:43:57 +0200 Subject: [PATCH] Bluetooth: Use _vprintk() instead of _prf() The Bluetooth thread stack sizes are optimized based on the assumption that printk is used for logging and not printf. Using _prf() (the printf backend) risks overflowing the stack, so use the recently exposed _vprintk instead. Change-Id: Ibcbe0af2994c83114d12aa27a8bc29c77bb8c4c8 Signed-off-by: Johan Hedberg --- subsys/bluetooth/host/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/monitor.c b/subsys/bluetooth/host/monitor.c index d599051b732..4b0e9c52899 100644 --- a/subsys/bluetooth/host/monitor.c +++ b/subsys/bluetooth/host/monitor.c @@ -105,7 +105,7 @@ void bt_log(int prio, const char *fmt, ...) monitor_send(id, sizeof(id)); va_start(ap, fmt); - _prf(log_out, NULL, fmt, ap); + _vprintk(log_out, NULL, fmt, ap); va_end(ap); /* Terminate the string with null */