ecore-drm2: Fix debug messages to use proper type
authorChris Michael <cp.michael@samsung.com>
Mon, 13 Feb 2017 14:44:30 +0000 (09:44 -0500)
committerChris Michael <cp.michael@samsung.com>
Mon, 13 Feb 2017 14:45:20 +0000 (09:45 -0500)
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 <cp.michael@samsung.com>
src/lib/ecore_drm2/ecore_drm2_fb.c

index 6b4a1b7..f838168 100644 (file)
@@ -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;
           }