diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index f49f571..cd91916 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
goto done;
}
- printf("Paired with %s\n", addr);
+ printf("Paired with %s (%s)\n", addr, typestr(rp->addr.type));
done:
mainloop_quit();
struct mgmt_cp_pair_device cp;
uint8_t cap = 0x01;
uint8_t type = BDADDR_BREDR;
+ char addr[18];
int opt;
while ((opt = getopt_long(argc, argv, "+c:t:h", pair_options,
cp.addr.type = type;
cp.io_cap = cap;
+ ba2str(&cp.addr.bdaddr, addr);
+ printf("Pairing with %s (%s)\n", addr, typestr(cp.addr.type));
+
if (mgmt_send(mgmt, MGMT_OP_PAIR_DEVICE, index, sizeof(cp), &cp,
pair_rsp, NULL, NULL) == 0) {
fprintf(stderr, "Unable to send pair_device cmd\n");