[PATCH 2/6] android/tester: Fix debug callback logs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Debug logs for callback should also print logs if callback is not
expected. Additional value in callback enum is added (BT_CB_NONE).
---
 android/tester-main.c | 1 +
 android/tester-main.h | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/android/tester-main.c b/android/tester-main.c
index 5bf9096..eaf5d34 100644
--- a/android/tester-main.c
+++ b/android/tester-main.c
@@ -32,6 +32,7 @@ static struct {
 	uint16_t cb_num;
 	const char *str;
 } cb_table[] = {
+	DBG_CB(CB_BT_NONE),
 	DBG_CB(CB_BT_ADAPTER_STATE_CHANGED),
 	DBG_CB(CB_BT_ADAPTER_PROPERTIES),
 	DBG_CB(CB_BT_REMOTE_DEVICE_PROPERTIES),
diff --git a/android/tester-main.h b/android/tester-main.h
index e152ff3..7c55ca5 100644
--- a/android/tester-main.h
+++ b/android/tester-main.h
@@ -289,7 +289,8 @@
  * updated while adding new HAL to tester.
  */
 typedef enum {
-	CB_BT_ADAPTER_STATE_CHANGED = 1,
+	CB_BT_NONE,
+	CB_BT_ADAPTER_STATE_CHANGED,
 	CB_BT_ADAPTER_PROPERTIES,
 	CB_BT_REMOTE_DEVICE_PROPERTIES,
 	CB_BT_DEVICE_FOUND,
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux