Fixing coding rule violations
authorShivam Garg <garg.shivam@samsung.com>
Tue, 13 Jun 2017 06:01:49 +0000 (15:01 +0900)
committerShivam Garg <garg.shivam@samsung.com>
Tue, 13 Jun 2017 06:04:14 +0000 (15:04 +0900)
apps/examples/testcase/ta_tc/arastorage/utc/utc_arastorage_main.c
framework/src/arastorage/index_manager.c

index 61b5a32..505f959 100644 (file)
@@ -54,7 +54,6 @@ struct arastorage_data_type_s {
        long long_value;
        char *string_value;
        double double_value;
-
 };
 
 typedef struct arastorage_data_type_s arastorage_data_t;
@@ -195,21 +194,21 @@ void utc_arastorage_db_exec_tc_p(void)
 
 #ifdef CONFIG_ARCH_FLOAT_H
 
-       for (; i < DATA_SET_NUM*DATA_SET_MULTIPLIER; i++) {
+       for (; i < DATA_SET_NUM * DATA_SET_MULTIPLIER; i++) {
                memset(query, 0, QUERY_LENGTH);
                snprintf(query, "INSERT (%d, %ld, \'%s\', %d, %f) INTO %s;", QUERY_LENGTH,
-                                i, g_arastorage_data_set[i%DATA_SET_NUM].long_value,
-                                g_arastorage_data_set[i%DATA_SET_NUM].string_value, 1000 - i,
-                                g_arastorage_data_set[i%DATA_SET_NUM].double_value, RELATION_NAME);
+                                i, g_arastorage_data_set[i % DATA_SET_NUM].long_value,
+                                g_arastorage_data_set[i % DATA_SET_NUM].string_value, 1000 - i,
+                                g_arastorage_data_set[i % DATA_SET_NUM].double_value, RELATION_NAME);
                res = db_exec(query);
                TC_ASSERT("db_exec", DB_SUCCESS(res));
        }
 #else
-       for (; i < DATA_SET_NUM*DATA_SET_MULTIPLIER; i++) {
+       for (; i < DATA_SET_NUM * DATA_SET_MULTIPLIER; i++) {
                memset(query, 0, QUERY_LENGTH);
                snprintf(query, QUERY_LENGTH, "INSERT (%d, %ld, \'%s\', %d) INTO %s;",
-                                i, g_arastorage_data_set[i%DATA_SET_NUM].long_value,
-                                g_arastorage_data_set[i%DATA_SET_NUM].string_value, 1000 - i, RELATION_NAME);
+                                i, g_arastorage_data_set[i % DATA_SET_NUM].long_value,
+                                g_arastorage_data_set[i % DATA_SET_NUM].string_value, 1000 - i, RELATION_NAME);
                res = db_exec(query);
                TC_ASSERT("db_exec", DB_SUCCESS(res));
        }
index 92fce29..88d7e6d 100644 (file)
@@ -480,7 +480,7 @@ db_result_t db_indexing(relation_t *rel)
 
        for (tuple_id = 0; tuple_id < cardinality; tuple_id++) {
                memset(row, 0, sizeof(row));
-               DB_LOG_V("DB: Indexing Tuple id %d\n",tuple_id);
+               DB_LOG_V("DB: Indexing Tuple id %d\n", tuple_id);
                result = storage_get_row(rel, &tuple_id, row);
                if (DB_ERROR(result)) {
                        DB_LOG_E("DB: Failed to get a row in relation %s!\n", rel->name);