apply tizen coding style 19/82819/1
authorBoram Park <boram1288.park@samsung.com>
Mon, 8 Aug 2016 01:59:34 +0000 (10:59 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 8 Aug 2016 01:59:34 +0000 (10:59 +0900)
Change-Id: I67736c86ad6b2e11feeaa697d7b4dd721794fcc3

src/tdm_helper.c
src/tdm_server.c
src/tdm_vblank.c
tools/buffers.c
tools/tdm_test_client.c

index 6ea3e54..7c2f36f 100644 (file)
@@ -178,7 +178,7 @@ tdm_helper_dump_make_directory(const char *path, char *reply, int *len)
 
        timer = time(NULL);
 
-       buf = calloc(1, sizeof (struct tm));
+       buf = calloc(1, sizeof(struct tm));
        TDM_GOTO_IF_FAIL(buf != NULL, failed_make);
 
        fullpath = calloc(1, TDM_PATH_LEN * sizeof(char));
index ef45abe..d92b7a1 100644 (file)
@@ -195,9 +195,8 @@ destroy_vblank_callback(struct wl_resource *resource)
                tdm_vblank_destroy(vblank_info->vblank);
 
        LIST_FOR_EACH_ENTRY_SAFE(w, ww, &keep_private_server->wait_list, link) {
-               if (w->vblank_info == vblank_info) {
+               if (w->vblank_info == vblank_info)
                        destroy_wait(w);
-               }
        }
 
        LIST_DEL(&vblank_info->link);
@@ -367,7 +366,7 @@ _tdm_server_cb_create_output(struct wl_client *client, struct wl_resource *resou
        if (!output) {
                TDM_ERR("There is no '%s' output", name);
                wl_resource_post_error(resource, WL_DISPLAY_ERROR_INVALID_OBJECT,
-                               "There is no '%s' output", name);
+                                                          "There is no '%s' output", name);
                return;
        }
 
@@ -375,7 +374,7 @@ _tdm_server_cb_create_output(struct wl_client *client, struct wl_resource *resou
        if (!mode) {
                TDM_ERR("no mode for '%s' output", name);
                wl_resource_post_error(resource, WL_DISPLAY_ERROR_INVALID_OBJECT,
-                               "no mode for '%s' output", name);
+                                                          "no mode for '%s' output", name);
                return;
        }
 
index 0f278c2..53554fa 100644 (file)
  * - use a tdm_event_loop_source object only.
  */
 
-#define VER(fmt,arg...)   TDM_ERR("[%p] "fmt, private_vblank, ##arg)
-#define VWR(fmt,arg...)   TDM_WRN("[%p] "fmt, private_vblank, ##arg)
-#define VIN(fmt,arg...)   TDM_INFO("[%p] "fmt, private_vblank, ##arg)
-#define VDB(fmt,arg...)   TDM_DBG("[%p] "fmt, private_vblank, ##arg)
+#define VER(fmt, arg...)   TDM_ERR("[%p] "fmt, private_vblank, ##arg)
+#define VWR(fmt, arg...)   TDM_WRN("[%p] "fmt, private_vblank, ##arg)
+#define VIN(fmt, arg...)   TDM_INFO("[%p] "fmt, private_vblank, ##arg)
+#define VDB(fmt, arg...)   TDM_DBG("[%p] "fmt, private_vblank, ##arg)
 
 typedef struct _tdm_vblank_wait_info tdm_vblank_wait_info;
 
@@ -912,8 +912,7 @@ tdm_vblank_wait(tdm_vblank *vblank, unsigned int req_sec, unsigned int req_usec,
                        TDM_WRN("try to use SW");
                        ret = _tdm_vblank_wait_SW(wait_info);
                }
-       }
-       else
+       } else
                ret = _tdm_vblank_wait_SW(wait_info);
 
        if (ret != TDM_ERROR_NONE) {
index 805383b..907e6f8 100644 (file)
@@ -159,7 +159,7 @@ unsigned int format_fourcc(const char *name)
  */
 
 struct color_rgb24 {
-       unsigned int value: 24;
+       unsigned int value:24;
 } __attribute__((__packed__));
 
 struct color_yuv {
@@ -169,7 +169,7 @@ struct color_yuv {
 };
 
 #define MAKE_YUV_601_Y(r, g, b) \
-       ((( 66 * (r) + 129 * (g) +  25 * (b) + 128) >> 8) + 16)
+       (((66 * (r) + 129 * (g) +  25 * (b) + 128) >> 8) + 16)
 #define MAKE_YUV_601_U(r, g, b) \
        (((-38 * (r) -  74 * (g) + 112 * (b) + 128) >> 8) + 128)
 #define MAKE_YUV_601_V(r, g, b) \
@@ -585,9 +585,8 @@ fill_smpte_rgb32(const struct rgb_info *rgb, unsigned char *mem,
                        ((uint32_t *)mem)[x] =
                                colors_bottom[(x - width * 5 / 7) * 3
                                                          / (width / 7) + 4];
-               for (; x < width; ++x) {
+               for (; x < width; ++x)
                        ((uint32_t *)mem)[x] = (rand_r(&rand_seed) % 2) ? MAKE_RGBA(rgb, 255, 255, 255, ALPHA_VALUE) : MAKE_RGBA(rgb, 0, 0, 0, ALPHA_VALUE);
-               }
                mem += stride;
        }
 }
index ab322aa..ba9b257 100644 (file)
@@ -159,7 +159,7 @@ parse_arg_v(tdm_test_client *data, char *arg)
 
        if (*end == '*') {
                arg = end + 1;
-               data->args.enable_fake= strtol(arg, &end, 10);
+               data->args.enable_fake = strtol(arg, &end, 10);
        }
 }
 
@@ -365,7 +365,7 @@ main(int argc, char *argv[])
                snprintf(buf, sizeof(buf), "/run");
                int ret = setenv("XDG_RUNTIME_DIR", (const char*)buf, 1);
                if (ret != 0)
-                       exit (0);
+                       exit(0);
        }
 #endif