@@ -1676,12 +1676,16 @@ GIOChannel *bt_io_connect(BtIOConnect connect, gpointer user_data,
ret = parse_set_opts(&opts, gerr, opt1, args);
va_end(args);
- if (ret == FALSE)
+ if (ret == FALSE) {
+ fprintf(stderr, "bt_io_connect(type:%d) err1\n", opts.type);
return NULL;
+ }
io = create_io(FALSE, &opts, gerr);
- if (io == NULL)
+ if (io == NULL) {
+ fprintf(stderr, "bt_io_connect(type:%d) err2\n", opts.type);
return NULL;
+ }
sock = g_io_channel_unix_get_fd(io);
@@ -56,10 +56,12 @@ static void usage(void)
printf("options:\n"
"\t-S Create local serial port\n"
"\t-s Create local server sockets\n"
- "\t-l [num] Number of local controllers\n"
+ "\t-l[num] Number of local controllers\n"
"\t-L Create LE only controller\n"
+ "\t-U[num] Number of test LE controllers\n"
"\t-B Create BR/EDR only controller\n"
"\t-A Create AMP controller\n"
+ "\t-T[num] Number of test AMP controllers\n"
"\t-h, --help Show help options\n");
}
@@ -97,7 +99,7 @@ int main(int argc, char *argv[])
for (;;) {
int opt;
- opt = getopt_long(argc, argv, "Ssl::LBAUTvh",
+ opt = getopt_long(argc, argv, "Ssl::LBAU::T::vh",
main_options, NULL);
if (opt < 0)
break;