Diff between b759a718519ded0a217a7bf958cbd210494610b9 and 2404a099f6f980dc22a4a5234ed261a760c4efbe
Changed Files
| File | Additions | Deletions | Status |
| tools/btmgmt.c | +2 | -2 | modified |
Full Patch
diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index ee2cb18..8eee2b1 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -1790,7 +1790,7 @@ done:
static bool parse_setting(int argc, char **argv, uint8_t *val)
{
if (argc < 2) {
- print("Specify \"on\" or \"off\"");
+ cmd_usage(argv[0]);
return false;
}
@@ -1893,7 +1893,7 @@ static void cmd_sc(struct mgmt *mgmt, uint16_t index, int argc, char **argv)
uint8_t val;
if (argc < 2) {
- print("Specify \"on\" or \"off\" or \"only\"");
+ cmd_usage(argv[0]);
return noninteractive_quit(EXIT_FAILURE);
}