From: Chris Michael Date: Mon, 13 Feb 2017 14:44:30 +0000 (-0500) Subject: ecore-drm2: Fix debug messages to use proper type X-Git-Tag: upstream/1.20.0~2031 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=000124012034d0a5fac7d8fdd1812010fc865316;p=platform%2Fupstream%2Fefl.git ecore-drm2: Fix debug messages to use proper type Small patch which fixes some FB flipping messages to use the proper type (ie: some messages were ERR when should be DBG or WRN, etc). NB: No functional changes Signed-off-by: Chris Michael --- diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c index 6b4a1b7..f838168 100644 --- a/src/lib/ecore_drm2/ecore_drm2_fb.c +++ b/src/lib/ecore_drm2/ecore_drm2_fb.c @@ -439,7 +439,7 @@ ecore_drm2_fb_flip(Ecore_Drm2_Fb *fb, Ecore_Drm2_Output *output) { repeat = EINA_TRUE; if (count == 0) - ERR("Pageflip fail - EBUSY from drmModePageFlip..."); + WRN("Pageflip fail - EBUSY from drmModePageFlip..."); count++; if (count > 500) { @@ -450,12 +450,13 @@ ecore_drm2_fb_flip(Ecore_Drm2_Fb *fb, Ecore_Drm2_Output *output) } } while (repeat); + if ((ret == 0) && (count > 0)) - ERR("Pageflip finally succeeded after %i tries due to EBUSY", count); + DBG("Pageflip finally succeeded after %i tries due to EBUSY", count); if ((ret < 0) && (errno != EBUSY)) { - DBG("Pageflip Failed for Crtc %u on Connector %u: %m", + ERR("Pageflip Failed for Crtc %u on Connector %u: %m", output->crtc_id, output->conn_id); return ret; }