summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishant Chaprana <n.chaprana@samsung.com>2019-06-03 21:43:32 +0530
committersaerome kim <saerome.kim@samsung.com>2019-06-05 17:44:09 +0900
commit293e7bb09b52a697ba244d33c431ce424de2d467 (patch)
tree73e144d399d77d77820e7c20923cb4779a9b3353
parent6f6d520af86ebb928534bc06551b53138eb8efb3 (diff)
downloaduser-awareness-293e7bb09b52a697ba244d33c431ce424de2d467.tar.gz
user-awareness-293e7bb09b52a697ba244d33c431ce424de2d467.tar.bz2
user-awareness-293e7bb09b52a697ba244d33c431ce424de2d467.zip
Removed Tizen code rule checker errors and warnings.
This patch fixes below mentioned Tizen code rule checker errors and warnings:- ./test/uat-detections.c:153: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:153: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:155: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:155: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:156: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:156: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:158: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:158: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:160: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:160: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:161: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:161: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:163: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:163: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:165: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:165: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:166: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:166: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:168: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:168: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:172: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:172: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:174: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:174: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:176: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:176: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:178: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:178: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:180: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:180: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:181: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:181: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:183: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:183: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:187: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:187: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:188: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:188: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:189: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:189: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:190: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:190: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:191: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:191: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-detections.c:204: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./test/uat-detections.c:204: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./test/uat-menu.h:65: WARNING: [BRC_R_SST] braces {} are not necessary for single statement blocks ./test/uat-menu.h:69: WARNING: [BRC_R_SST] braces {} are not necessary for single statement blocks ./test/uat-menu.h:74: WARNING: [BRC_R_SST] braces {} are not necessary for single statement blocks ./include/user-awareness.h:189: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./include/user-awareness.h:189: ERROR: [IDT_M_TAB] please, no spaces at the start of a line ./include/user-awareness.h:190: ERROR: [IDT_M_TAB] code indent should use tabs where possible ./include/user-awareness.h:190: ERROR: [IDT_M_TAB] please, no spaces at the start of a line Change-Id: I80ec1be39196a0652f9d27a6e8a6e8bbe841dd45 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
-rw-r--r--include/user-awareness.h4
-rw-r--r--test/uat-detections.c46
-rw-r--r--test/uat-menu.h6
3 files changed, 28 insertions, 28 deletions
diff --git a/include/user-awareness.h b/include/user-awareness.h
index 119da75..e42f591 100644
--- a/include/user-awareness.h
+++ b/include/user-awareness.h
@@ -186,8 +186,8 @@ typedef enum {
* @since_tizen 5.5
*/
typedef enum {
- UA_ACTIVE_SCAN_TYPE_DEVICE_FOUND = 0x00, /**< Device found */
- UA_ACTIVE_SCAN_TYPE_COMPLETED = 0x01 /**< SCAN Completed */
+ UA_ACTIVE_SCAN_TYPE_DEVICE_FOUND = 0x00, /**< Device found */
+ UA_ACTIVE_SCAN_TYPE_COMPLETED = 0x01 /**< SCAN Completed */
} ua_active_scan_type_e;
/**
diff --git a/test/uat-detections.c b/test/uat-detections.c
index c069130..3fa7a8e 100644
--- a/test/uat-detections.c
+++ b/test/uat-detections.c
@@ -151,45 +151,45 @@ void ua_test_scan_completed_cb(ua_active_scan_type_e result, ua_monitor_h handle
}
static int run_ua_monitor_start_device_scan(
- MManager *mm, struct menu_data *menu)
+ MManager *mm, struct menu_data *menu)
{
- int ret = UA_ERROR_NONE;
- unsigned int scantimemultiplier = 0;
+ int ret = UA_ERROR_NONE;
+ unsigned int scantimemultiplier = 0;
- msg("ua_monitor_start_device_scan");
+ msg("ua_monitor_start_device_scan");
- if (strlen(scan_time_multiplier))
- scantimemultiplier = (unsigned int)strtol(scan_time_multiplier, NULL, 10);
+ if (strlen(scan_time_multiplier))
+ scantimemultiplier = (unsigned int)strtol(scan_time_multiplier, NULL, 10);
- ret = ua_monitor_start_scan_registered_devices(scantimemultiplier, ua_mon, ua_test_scan_completed_cb, NULL);
+ ret = ua_monitor_start_scan_registered_devices(scantimemultiplier, ua_mon, ua_test_scan_completed_cb, NULL);
- msg(" - ua_monitor_stop_absence_detection() ret: [0x%X] [%s]",
- ret, uat_get_error_str(ret));
+ msg(" - ua_monitor_stop_absence_detection() ret: [0x%X] [%s]",
+ ret, uat_get_error_str(ret));
- return RET_SUCCESS;
+ return RET_SUCCESS;
}
static int run_ua_monitor_cancel_scan_registered_devices(
- MManager *mm, struct menu_data *menu)
+ MManager *mm, struct menu_data *menu)
{
- int ret = UA_ERROR_NONE;
+ int ret = UA_ERROR_NONE;
- msg("ua_monitor_cancel_scan_registered_devices,");
+ msg("ua_monitor_cancel_scan_registered_devices,");
- ret = ua_monitor_cancel_scan_registered_devices(ua_mon);
+ ret = ua_monitor_cancel_scan_registered_devices(ua_mon);
- msg("ua_monitor_cancel_scan_registered_devices,() ret: [0x%X] [%s]",
- ret, uat_get_error_str(ret));
+ msg("ua_monitor_cancel_scan_registered_devices,() ret: [0x%X] [%s]",
+ ret, uat_get_error_str(ret));
- return RET_SUCCESS;
+ return RET_SUCCESS;
}
static struct menu_data menu_start_device_scan[] = {
- { "1", "Device scan time multiplier",
- NULL, NULL, scan_time_multiplier},
- { "2", "run", NULL,
- run_ua_monitor_start_device_scan, NULL },
- { NULL, NULL, },
+ { "1", "Device scan time multiplier",
+ NULL, NULL, scan_time_multiplier},
+ { "2", "run", NULL,
+ run_ua_monitor_start_device_scan, NULL },
+ { NULL, NULL, },
};
struct menu_data menu_ua_detections[] = {
@@ -202,7 +202,7 @@ struct menu_data menu_ua_detections[] = {
{ "4", "ua_monitor_stop_absence_detection",
NULL, run_ua_monitor_stop_absence_detection, NULL },
{ "5", "ua_monitor_start_device_scan",
- menu_start_device_scan, NULL, NULL },
+ menu_start_device_scan, NULL, NULL },
{ "6", "ua_monitor_cancel_scan_registered_devices",
NULL, run_ua_monitor_cancel_scan_registered_devices, NULL },
{ NULL, NULL, },
diff --git a/test/uat-menu.h b/test/uat-menu.h
index 728d36c..5fedaf3 100644
--- a/test/uat-menu.h
+++ b/test/uat-menu.h
@@ -62,16 +62,16 @@ __BEGIN_DECLS
3 + ((n) * 2), ##args); fflush(stdout); } while (0)
#define pmsg(fmt, args...) do { \
- if (is_pid_show()) { fprintf(stdout, "(%5d) ", get_tid()); } \
+ if (is_pid_show()) fprintf(stdout, "(%5d) ", get_tid()); \
fprintf(stdout, fmt "\n", ##args); fflush(stdout); } while (0)
#define pmsgb(fmt, args...) do { \
- if (is_pid_show()) { fprintf(stdout, "(%5d) ", get_tid()); } \
+ if (is_pid_show()) fprintf(stdout, "(%5d) ", get_tid()); \
fprintf(stdout, ANSI_COLOR_LIGHTGREEN fmt \
ANSI_COLOR_NORMAL "\n", ##args); fflush(stdout); } while (0)
#define pmsgt(n, fmt, args...) do { \
- if (is_pid_show()) { fprintf(stdout, "(%5d) ", get_tid()); } \
+ if (is_pid_show()) fprintf(stdout, "(%5d) ", get_tid()); \
fprintf(stdout, "\e[%dC" fmt "\n", \
3 + ((n) * 2), ##args); fflush(stdout); } while (0)