diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-11-02 11:09:12 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-11-02 11:11:16 -0800 |
commit | 25bc7dc9d1894ed29ee242820a27562494884a79 (patch) | |
tree | 156a4df56d0bd6aa05b3b840393fbfc6078a4e05 /tools/smp-tester.c | |
parent | d458d4bbbb9ecff53fa5dd4aecd937049bc7ab3d (diff) | |
download | bluez-25bc7dc9d1894ed29ee242820a27562494884a79.tar.gz |
tools/smp-tester: Enable hciemu debug
This enable hciemu debug when debug is enabled.
Diffstat (limited to 'tools/smp-tester.c')
-rw-r--r-- | tools/smp-tester.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/smp-tester.c b/tools/smp-tester.c index f64c1ab63..7823b6b17 100644 --- a/tools/smp-tester.c +++ b/tools/smp-tester.c @@ -82,7 +82,7 @@ struct smp_data { bool sc; }; -static void mgmt_debug(const char *str, void *user_data) +static void print_debug(const char *str, void *user_data) { const char *prefix = user_data; @@ -187,6 +187,9 @@ static void read_index_list_callback(uint8_t status, uint16_t length, tester_pre_setup_failed(); } + if (tester_use_debug()) + hciemu_set_debug(data->hciemu, print_debug, "hciemu: ", NULL); + tester_print("New hciemu instance created"); } @@ -210,7 +213,7 @@ static void test_pre_setup(const void *test_data) } if (tester_use_debug()) - mgmt_set_debug(data->mgmt, mgmt_debug, "mgmt: ", NULL); + mgmt_set_debug(data->mgmt, print_debug, "mgmt: ", NULL); mgmt_send(data->mgmt, MGMT_OP_READ_INDEX_LIST, MGMT_INDEX_NONE, 0, NULL, read_index_list_callback, NULL, NULL); |