Rename bluetooth-tethering test in dpm-cli-toolkit 00/69600/1
authorSeok Hong <seok85.hong@samsung.com>
Mon, 16 May 2016 05:50:11 +0000 (14:50 +0900)
committerSeok Hong <seok85.hong@samsung.com>
Mon, 16 May 2016 05:50:11 +0000 (14:50 +0900)
Rename 'bluetooth-tethering' to 'blueooth_tethering'
Add bluetooth_tethering option into tool usage string

Change-Id: I6b88bbe482b923afeaf7e52e6c688e590ad15a93
Signed-off-by: Seok Hong <seok85.hong@samsung.com>
tools/dpm-cli-toolkit/main.c

index 45a3b76..1edfb0d 100644 (file)
@@ -32,7 +32,7 @@ void print_rule(void)
     printf("Ex: dpm-cli-toolkit -s password\n");
     printf("--------------------------------------------------------------\n");
     printf("[Restrictioin Polocy]\n");
-    printf("camera, microphone, location, clipboard, settings, usb_debugging\n");
+    printf("camera, microphone, location, clipboard, settings, usb_debugging, bluetooth_tethering\n");
     printf("Usage: dpm-cli-toolkit -s [policy-name] -v [value: 0 or 1]\n");
     printf("Ex: dpm-cli-toolkit -s camera -v 1\n");
     printf("--------------------------------------------------------------\n");
@@ -134,7 +134,7 @@ void restriction_policy_command_handler(char *policy, int command, int state)
         settings_policy_handler(command, state);
     else if (strcmp(policy, "usb_debugging") == 0)
         usb_debugging_policy_handler(command, state);
-    else if (strcmp(policy, "bluetooth-tethering") == 0)
+    else if (strcmp(policy, "bluetooth_tethering") == 0)
         bluetooth_tethering_policy_handler(command, state);
     else {
         printf("Wrong policy name! Please refer to the policy names bleow.\n");