OSDN Git Service

btsnoop: Fix btsnoop_net runs unexpected
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Tue, 10 Mar 2020 04:00:40 +0000 (13:00 +0900)
committerKimJeongYeon <jeongyeon.kim@samsung.com>
Tue, 10 Mar 2020 04:49:25 +0000 (13:49 +0900)
By default, btsnoop_net was disabled using "BT_NET_DEBUG" macro.
But, it enabled actually and manages socket connection for sending
btsnoop logs. The reason was, TRUE/FALSE macro were not defined.
This fix including "bt_types.h" to work macro properly.

Test: Turn on btsnoop logging and observe btsnoop_net runs or not.

Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
hci/src/btsnoop_net.cc

index a90f156..23da481 100644 (file)
@@ -32,6 +32,7 @@
 
 #include <mutex>
 
+#include "bt_types.h"
 #include "osi/include/log.h"
 #include "osi/include/osi.h"