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:
Johan Hedberg 2016-12-09 21:43:57 +02:00 committed by Anas Nashif
commit 3fcb9c4ec2

View file

@ -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 */