diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-03-30 10:28:08 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-03-30 10:29:53 -0700 |
commit | 1b9ee34285b3ff900ab97cdb01d9a4b199274850 (patch) | |
tree | 3c1d70c078a990b6bfdbe7821513eb494dee5a47 /tools/btmgmt.c | |
parent | c95950e00631a8eff3f8b554e1b44187a7b1dfc0 (diff) | |
download | bluez-1b9ee34285b3ff900ab97cdb01d9a4b199274850.tar.gz |
btmgmt: Rename version command to revision
version is already handled by btshell and always refer to BlueZ version
rather than MGMT version, so this renames the command to revision to
avoid having the clash of command names.
Diffstat (limited to 'tools/btmgmt.c')
-rw-r--r-- | tools/btmgmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/btmgmt.c b/tools/btmgmt.c index 37c1c1c9e..09d6e4272 100644 --- a/tools/btmgmt.c +++ b/tools/btmgmt.c @@ -1025,7 +1025,7 @@ done: bt_shell_noninteractive_quit(EXIT_SUCCESS); } -static void cmd_version(int argc, char **argv) +static void cmd_revision(int argc, char **argv) { if (mgmt_send(mgmt, MGMT_OP_READ_VERSION, MGMT_INDEX_NONE, 0, NULL, version_rsp, NULL, NULL) == 0) { @@ -4391,8 +4391,8 @@ static const struct bt_shell_menu main_menu = { .entries = { { "select", "<index>", cmd_select, "Select a different index" }, - { "version", NULL, - cmd_version, "Get the MGMT Version" }, + { "revision", NULL, + cmd_revision, "Get the MGMT Revision" }, { "commands", NULL, cmd_commands, "List supported commands" }, { "config", NULL, |