From 047c6eacf7bf8d012c49f41fa2fdb3cda5731d12 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 7 Dec 2016 20:54:49 +0200 Subject: [PATCH] Bluetooth: Fine-tune debug-based stack size increase Now that printk is the default backend for logging the overhead is not as bad as with printf. 160 seems to be roughly the worst case amount of overhead that debug logs now cause. Change-Id: Ia5937b7318e00cc31c72fa1702c73a57bca0603a Signed-off-by: Johan Hedberg --- include/bluetooth/log.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bluetooth/log.h b/include/bluetooth/log.h index 983a1c00d1d..dc3453cee77 100644 --- a/include/bluetooth/log.h +++ b/include/bluetooth/log.h @@ -47,8 +47,8 @@ void bt_log(int prio, const char *fmt, ...); __func__, ##__VA_ARGS__) #define BT_INFO(fmt, ...) bt_log(BT_LOG_INFO, fmt, ##__VA_ARGS__) -/* Enabling debug increases stack size requirement considerably */ -#define BT_STACK_DEBUG_EXTRA 512 +/* Enabling debug increases stack size requirement */ +#define BT_STACK_DEBUG_EXTRA 160 #elif defined(CONFIG_BLUETOOTH_DEBUG_LOG)