int sk;
};
-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;
tester_pre_setup_failed();
}
+ if (tester_use_debug())
+ hciemu_set_debug(data->hciemu, print_debug, "hciemu: ", NULL);
+
if (test && test->setup_le_states)
hciemu_set_master_le_states(data->hciemu, test->le_states);
}
}
if (tester_use_debug()) {
- mgmt_set_debug(data->mgmt, mgmt_debug, "mgmt: ", NULL);
- mgmt_set_debug(data->mgmt_alt, mgmt_debug, "mgmt-alt: ", NULL);
+ mgmt_set_debug(data->mgmt, print_debug, "mgmt: ", NULL);
+ mgmt_set_debug(data->mgmt_alt, print_debug, "mgmt-alt: ", NULL);
}
mgmt_send(data->mgmt, MGMT_OP_READ_VERSION, MGMT_INDEX_NONE, 0, NULL,