diff --git a/mgmt/main.c b/mgmt/main.c
index 522e2f8..e059a3e 100644
--- a/mgmt/main.c
+++ b/mgmt/main.c
return -EINVAL;
}
- printf("controller error 0x%02x\n", ev->error_code);
+ printf("hci%u error 0x%02x\n", index, ev->error_code);
return 0;
}
static int mgmt_index_added(int mgmt_sk, uint16_t index)
{
- printf("index %u added\n", index);
+ printf("hci%u added\n", index);
return 0;
}
static int mgmt_index_removed(int mgmt_sk, uint16_t index)
{
- printf("index %u removed\n", index);
+ printf("hci%u removed\n", index);
return 0;
}
return -EINVAL;
}
- printf("index %u powered %s\n", index, ev->val ? "on" : "off");
+ printf("hci%u powered %s\n", index, ev->val ? "on" : "off");
return 0;
}
return -EINVAL;
}
- printf("index %u discoverable %s\n", index, ev->val ? "on" : "off");
+ printf("hci%u discoverable %s\n", index, ev->val ? "on" : "off");
return 0;
}
return -EINVAL;
}
- printf("index %u connectable %s\n", index, ev->val ? "on" : "off");
+ printf("hci%u connectable %s\n", index, ev->val ? "on" : "off");
return 0;
}
return -EINVAL;
}
- printf("index %u pairable %s\n", index, ev->val ? "on" : "off");
+ printf("hci%u pairable %s\n", index, ev->val ? "on" : "off");
return 0;
}
char addr[18];
if (status != 0) {
- printf("Reading controller %u info failed with status %u\n",
+ printf("Reading hci%u info failed with status %u\n",
id, status);
exit(EXIT_FAILURE);
}