summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2018-01-17 15:23:52 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2018-01-17 15:23:52 +0900
commit1a39e2d4291fdd3b298910f8d3512193b76c27f5 (patch)
treeb5772f0de218b0effee229def205b0a47a4d5bea
parent24447641d38cb9bf7b9e816d38cfeab55dae14c7 (diff)
glview: Remove trailing newline in ERR
It's not needed.
-rw-r--r--src/lib/elementary/elm_glview.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/lib/elementary/elm_glview.c b/src/lib/elementary/elm_glview.c
index 986629f8f8..0340059fbf 100644
--- a/src/lib/elementary/elm_glview.c
+++ b/src/lib/elementary/elm_glview.c
@@ -118,7 +118,7 @@ _render_cb(void *obj, const Efl_Event *event EINA_UNUSED)
118 // Do a make current 118 // Do a make current
119 if (!evas_gl_make_current(sd->evasgl, sd->surface, sd->context)) 119 if (!evas_gl_make_current(sd->evasgl, sd->surface, sd->context))
120 { 120 {
121 ERR("Failed doing make current.\n"); 121 ERR("Failed doing make current.");
122 goto on_error; 122 goto on_error;
123 } 123 }
124 124
@@ -158,7 +158,7 @@ _render_cb(void *obj, const Efl_Event *event EINA_UNUSED)
158 } 158 }
159 else 159 else
160 { 160 {
161 ERR("Invalid Render Policy.\n"); 161 ERR("Invalid Render Policy.");
162 goto on_error; 162 goto on_error;
163 } 163 }
164 164
@@ -214,7 +214,7 @@ _set_render_policy_callback(Evas_Object *obj)
214 break; 214 break;
215 215
216 default: 216 default:
217 ERR("Invalid Render Policy.\n"); 217 ERR("Invalid Render Policy.");
218 return; 218 return;
219 } 219 }
220} 220}
@@ -241,8 +241,7 @@ _elm_glview_constructor(Eo *obj, Elm_Glview_Data *priv)
241 priv->evasgl = evas_gl_new(evas_object_evas_get(obj)); 241 priv->evasgl = evas_gl_new(evas_object_evas_get(obj));
242 if (!priv->evasgl) 242 if (!priv->evasgl)
243 { 243 {
244 ERR("Failed Creating an Evas GL Object.\n"); 244 ERR("Failed Creating an Evas GL Object.");
245
246 return; 245 return;
247 } 246 }
248 247
@@ -250,8 +249,7 @@ _elm_glview_constructor(Eo *obj, Elm_Glview_Data *priv)
250 priv->config = evas_gl_config_new(); 249 priv->config = evas_gl_config_new();
251 if (!priv->config) 250 if (!priv->config)
252 { 251 {
253 ERR("Failed Creating a Config Object.\n"); 252 ERR("Failed Creating a Config Object.");
254
255 evas_gl_free(priv->evasgl); 253 evas_gl_free(priv->evasgl);
256 priv->evasgl = NULL; 254 priv->evasgl = NULL;
257 return; 255 return;
@@ -278,8 +276,7 @@ _elm_glview_constructor(Eo *obj, Elm_Glview_Data *priv)
278 priv->context = evas_gl_context_version_create(priv->evasgl, NULL, priv->gles_version); 276 priv->context = evas_gl_context_version_create(priv->evasgl, NULL, priv->gles_version);
279 if (!priv->context) 277 if (!priv->context)
280 { 278 {
281 ERR("Error Creating an Evas_GL Context.\n"); 279 ERR("Error Creating an Evas_GL Context.");
282
283 ELM_SAFE_FREE(priv->config, evas_gl_config_free); 280 ELM_SAFE_FREE(priv->config, evas_gl_config_free);
284 ELM_SAFE_FREE(priv->evasgl, evas_gl_free); 281 ELM_SAFE_FREE(priv->evasgl, evas_gl_free);
285 return; 282 return;
@@ -479,7 +476,7 @@ _elm_glview_resize_policy_set(Eo *obj, Elm_Glview_Data *sd, Elm_GLView_Resize_Po
479 return EINA_TRUE; 476 return EINA_TRUE;
480 477
481 default: 478 default:
482 ERR("Invalid Scale Policy.\n"); 479 ERR("Invalid Scale Policy.");
483 return EINA_FALSE; 480 return EINA_FALSE;
484 } 481 }
485 482
@@ -492,7 +489,7 @@ _elm_glview_render_policy_set(Eo *obj, Elm_Glview_Data *sd, Elm_GLView_Render_Po
492 if ((policy != ELM_GLVIEW_RENDER_POLICY_ON_DEMAND) && 489 if ((policy != ELM_GLVIEW_RENDER_POLICY_ON_DEMAND) &&
493 (policy != ELM_GLVIEW_RENDER_POLICY_ALWAYS)) 490 (policy != ELM_GLVIEW_RENDER_POLICY_ALWAYS))
494 { 491 {
495 ERR("Invalid Render Policy.\n"); 492 ERR("Invalid Render Policy.");
496 return EINA_FALSE; 493 return EINA_FALSE;
497 } 494 }
498 495