diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index 3ff0724..e9df5a8 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
struct mgmt_cp_set_discoverable cp;
if (argc < 2) {
- print("Usage: btmgmt %s <yes/no/limited> [timeout]", argv[0]);
+ print("Usage: %s <yes/no/limited> [timeout]", argv[0]);
return noninteractive_quit(EXIT_FAILURE);
}
uint8_t class[2];
if (argc < 3) {
- print("Usage: btmgmt %s <major> <minor>", argv[0]);
+ print("Usage: %s <major> <minor>", argv[0]);
return noninteractive_quit(EXIT_FAILURE);
}
static void disconnect_usage(void)
{
- print("Usage: btmgmt disconnect [-t type] <remote address>");
+ print("Usage: disconnect [-t type] <remote address>");
}
static struct option disconnect_options[] = {
static void find_service_usage(void)
{
- print("Usage: btmgmt find-service [-u UUID] [-r RSSI_Threshold] [-l|-b]");
+ print("Usage: find-service [-u UUID] [-r RSSI_Threshold] [-l|-b]");
}
static struct option find_service_options[] = {
static void find_usage(void)
{
- print("Usage: btmgmt find [-l|-b]>");
+ print("Usage: find [-l|-b]>");
}
static struct option find_options[] = {
struct mgmt_cp_set_local_name cp;
if (argc < 2) {
- print("Usage: btmgmt %s <name> [shortname]", argv[0]);
+ print("Usage: %s <name> [shortname]", argv[0]);
return noninteractive_quit(EXIT_FAILURE);
}
static void pair_usage(void)
{
- print("Usage: btmgmt pair [-c cap] [-t type] <remote address>");
+ print("Usage: pair [-c cap] [-t type] <remote address>");
}
static struct option pair_options[] = {
static void cancel_pair_usage(void)
{
- print("Usage: btmgmt cancelpair [-t type] <remote address>");
+ print("Usage: cancelpair [-t type] <remote address>");
}
static struct option cancel_pair_options[] = {
static void unpair_usage(void)
{
- print("Usage: btmgmt unpair [-t type] <remote address>");
+ print("Usage: unpair [-t type] <remote address>");
}
static struct option unpair_options[] = {
static void irks_usage(void)
{
- print("Usage: btmgmt irks [--local]");
+ print("Usage: irks [--local]");
}
static struct option irks_options[] = {
static void block_usage(void)
{
- print("Usage: btmgmt block [-t type] <remote address>");
+ print("Usage: block [-t type] <remote address>");
}
static struct option block_options[] = {
static void unblock_usage(void)
{
- print("Usage: btmgmt unblock [-t type] <remote address>");
+ print("Usage: unblock [-t type] <remote address>");
}
static void cmd_unblock(struct mgmt *mgmt, uint16_t index, int argc,
static void remote_oob_usage(void)
{
- print("Usage: btmgmt remote-oob [-t <addr_type>] "
+ print("Usage: remote-oob [-t <addr_type>] "
"[-r <rand192>] [-h <hash192>] [-R <rand256>] [-H <hash256>] "
"<addr>");
}
static void did_usage(void)
{
- print("Usage: btmgmt did <source>:<vendor>:<product>:<version>");
+ print("Usage: did <source>:<vendor>:<product>:<version>");
print(" possible source values: bluetooth, usb");
}
static void static_addr_usage(void)
{
- print("Usage: btmgmt static-addr <address>");
+ print("Usage: static-addr <address>");
}
static void cmd_static_addr(struct mgmt *mgmt, uint16_t index,
struct mgmt_cp_set_public_address cp;
if (argc < 2) {
- print("Usage: btmgmt public-addr <address>");
+ print("Usage: public-addr <address>");
return noninteractive_quit(EXIT_FAILURE);
}
static void conn_info_usage(void)
{
- print("Usage: btmgmt conn-info [-t type] <remote address>");
+ print("Usage: conn-info [-t type] <remote address>");
}
static struct option conn_info_options[] = {
static void io_cap_usage(void)
{
- print("Usage: btmgmt io-cap <cap>");
+ print("Usage: io-cap <cap>");
}
static void cmd_io_cap(struct mgmt *mgmt, uint16_t index,
static void scan_params_usage(void)
{
- print("Usage: btmgmt scan-params <interval> <window>");
+ print("Usage: scan-params <interval> <window>");
}
static void cmd_scan_params(struct mgmt *mgmt, uint16_t index,
static void add_device_usage(void)
{
- print("Usage: btmgmt add-device [-a action] [-t type] <address>");
+ print("Usage: add-device [-a action] [-t type] <address>");
}
static struct option add_device_options[] = {
static void del_device_usage(void)
{
- print("Usage: btmgmt del-device [-t type] <address>");
+ print("Usage: del-device [-t type] <address>");
}
static struct option del_device_options[] = {