summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_fb.c
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/lib/ecore_drm/ecore_drm_fb.c
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/lib/ecore_drm/ecore_drm_fb.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm_fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_fb.c b/src/lib/ecore_drm/ecore_drm_fb.c
index 00c062a761..234b06f17c 100644
--- a/src/lib/ecore_drm/ecore_drm_fb.c
+++ b/src/lib/ecore_drm/ecore_drm_fb.c
@@ -81,7 +81,7 @@ ecore_drm_fb_create(Ecore_Drm_Device *dev, int width, int height)
81 81
82 if (!_ecore_drm_fb_create2(dev->drm.fd, fb)) 82 if (!_ecore_drm_fb_create2(dev->drm.fd, fb))
83 { 83 {
84 WRN("Could not add framebuffer2: %m"); 84 WRN("Could not add framebuffer2");
85 if (drmModeAddFB(dev->drm.fd, fb->w, fb->h, 24, 32, 85 if (drmModeAddFB(dev->drm.fd, fb->w, fb->h, 24, 32,
86 fb->stride, fb->hdl, &fb->id)) 86 fb->stride, fb->hdl, &fb->id))
87 { 87 {
@@ -264,7 +264,7 @@ ecore_drm_fb_send(Ecore_Drm_Device *dev, Ecore_Drm_Fb *fb, Ecore_Drm_Pageflip_Cb
264 ret = drmHandleEvent(dev->drm.fd, &dev->drm_ctx); 264 ret = drmHandleEvent(dev->drm.fd, &dev->drm_ctx);
265 if (ret < 0) 265 if (ret < 0)
266 { 266 {
267 ERR("drmHandleEvent Failed: %m"); 267 ERR("drmHandleEvent Failed");
268 free(cb); 268 free(cb);
269 break; 269 break;
270 } 270 }