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 <johan.hedberg@intel.com>
This commit is contained in:
parent
244a4dfe73
commit
3fcb9c4ec2
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue