summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-01-14 13:05:55 -0500
committerChris Michael <cpmichael@osg.samsung.com>2016-01-14 13:06:02 -0500
commit943f2df0069cf615904c08cd92f3b72592cfafb1 (patch)
tree6a867f4aec5afbf59cb3e8590b2023126703dd60 /src/modules
parent01dc2540db2b16ef9a0453ac632af9c58f956884 (diff)
ecore_drm/ecore_wl2: logging: remove errant usage of %m
Summary: printf %m stringifies and prints errno. I've tried to remove its use anywhere that the immediately preceding function might not set errno or is a complicated function for which knowing errno doesn't really give any useful information. I've left a few of the drmMode calls because they're just wrappers around ioctl, which legitimately sets errno. @fix Reviewers: zmike, devilhorns Reviewed By: zmike, devilhorns Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3572
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c6
-rw-r--r--src/modules/evas/engines/gl_drm/evas_engine.c4
-rw-r--r--src/modules/evas/engines/gl_drm/evas_outbuf.c4
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_engine.c2
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_shm.c2
5 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index 9652144256..7f18ecaa54 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -563,21 +563,21 @@ _ecore_evas_drm_init(const char *device)
563 /* try to create sprites */ 563 /* try to create sprites */
564 if (!ecore_drm_sprites_create(dev)) 564 if (!ecore_drm_sprites_create(dev))
565 { 565 {
566 ERR("Could not create sprites: %m"); 566 ERR("Could not create sprites");
567 goto sprite_err; 567 goto sprite_err;
568 } 568 }
569 569
570 /* try to create outputs */ 570 /* try to create outputs */
571 if (!ecore_drm_outputs_create(dev)) 571 if (!ecore_drm_outputs_create(dev))
572 { 572 {
573 ERR("Could not create outputs: %m"); 573 ERR("Could not create outputs");
574 goto output_err; 574 goto output_err;
575 } 575 }
576 576
577 /* try to create inputs */ 577 /* try to create inputs */
578 if (!ecore_drm_inputs_create(dev)) 578 if (!ecore_drm_inputs_create(dev))
579 { 579 {
580 ERR("Could not create inputs: %m"); 580 ERR("Could not create inputs");
581 goto input_err; 581 goto input_err;
582 } 582 }
583 583
diff --git a/src/modules/evas/engines/gl_drm/evas_engine.c b/src/modules/evas/engines/gl_drm/evas_engine.c
index bddaa7b0f9..a8261448fc 100644
--- a/src/modules/evas/engines/gl_drm/evas_engine.c
+++ b/src/modules/evas/engines/gl_drm/evas_engine.c
@@ -125,7 +125,7 @@ eng_gbm_init(Evas_Engine_Info_GL_Drm *info)
125 125
126 if (!(info->info.gbm = gbm_create_device(dev->drm.fd))) 126 if (!(info->info.gbm = gbm_create_device(dev->drm.fd)))
127 { 127 {
128 ERR("Coult not create gbm device: %m"); 128 ERR("Coult not create gbm device");
129 return EINA_FALSE; 129 return EINA_FALSE;
130 } 130 }
131 131
@@ -382,7 +382,7 @@ evgl_eng_native_window_create(void *data)
382 info->info.format, info->info.flags); 382 info->info.format, info->info.flags);
383 if (!surface) 383 if (!surface)
384 { 384 {
385 ERR("Could not create gl drm window: %m"); 385 ERR("Could not create gl drm window");
386 return NULL; 386 return NULL;
387 } 387 }
388 388
diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c b/src/modules/evas/engines/gl_drm/evas_outbuf.c
index 084e8d9fe0..c882fa9fab 100644
--- a/src/modules/evas/engines/gl_drm/evas_outbuf.c
+++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c
@@ -31,7 +31,7 @@ _evas_outbuf_gbm_surface_create(Outbuf *ob, int w, int h)
31 gbm_surface_create(ob->info->info.gbm, w, h, 31 gbm_surface_create(ob->info->info.gbm, w, h,
32 ob->info->info.format, ob->info->info.flags); 32 ob->info->info.format, ob->info->info.flags);
33 33
34 if (!ob->surface) ERR("Failed to create gbm surface: %m"); 34 if (!ob->surface) ERR("Failed to create gbm surface");
35} 35}
36 36
37static void 37static void
@@ -117,7 +117,7 @@ _evas_outbuf_buffer_swap(Outbuf *ob, Eina_Rectangle *rects, unsigned int count)
117 ob->priv.bo[ob->priv.curr] = gbm_surface_lock_front_buffer(ob->surface); 117 ob->priv.bo[ob->priv.curr] = gbm_surface_lock_front_buffer(ob->surface);
118 if (!ob->priv.bo[ob->priv.curr]) 118 if (!ob->priv.bo[ob->priv.curr])
119 { 119 {
120 WRN("Could not lock front buffer: %m"); 120 WRN("Could not lock front buffer");
121 return; 121 return;
122 } 122 }
123 123
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c
index 44968b733c..4e7674d2ee 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -285,7 +285,7 @@ evgl_eng_native_window_create(void *data)
285 285
286 if (!(win = wl_egl_window_create(ob->info->info.surface, 1, 1))) 286 if (!(win = wl_egl_window_create(ob->info->info.surface, 1, 1)))
287 { 287 {
288 ERR("Could not create wl_egl window: %m"); 288 ERR("Could not create wl_egl window");
289 return NULL; 289 return NULL;
290 } 290 }
291 291
diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c b/src/modules/evas/engines/wayland_shm/evas_shm.c
index 04e7f7bedc..f54e7d11a1 100644
--- a/src/modules/evas/engines/wayland_shm/evas_shm.c
+++ b/src/modules/evas/engines/wayland_shm/evas_shm.c
@@ -184,7 +184,7 @@ _shm_data_create_from_pool(Shm_Pool *pool, int w, int h, Eina_Bool alpha)
184 (w * sizeof(int)), wl_format); 184 (w * sizeof(int)), wl_format);
185 if (!data->buffer) 185 if (!data->buffer)
186 { 186 {
187 ERR("Could not create buffer from pool: %m"); 187 ERR("Could not create buffer from pool");
188 goto err; 188 goto err;
189 } 189 }
190 190