DSS2: print overlay related errors
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 11 Jul 2014 22:25:20 +0000 (01:25 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 11 Jul 2014 22:37:16 +0000 (01:37 +0300)
otherwise it's hard to find out what's wrong in some cases

drivers/video/omap2/dss/overlay.c

index 285e8ba..0bb0a7b 100644 (file)
@@ -538,7 +538,7 @@ int dss_check_overlay(struct omap_overlay *ovl, struct omap_dss_device *dssdev)
        info = &ovl->info;
 
        if (info->paddr == 0) {
-               DSSDBG("check_overlay failed: paddr 0\n");
+               DSSERR("check_overlay failed: paddr 0\n");
                return -EINVAL;
        }
 
@@ -567,13 +567,13 @@ int dss_check_overlay(struct omap_overlay *ovl, struct omap_dss_device *dssdev)
        }
 
        if (dw < info->pos_x + outw) {
-               DSSDBG("check_overlay failed 1: %d < %d + %d\n",
+               DSSERR("check_overlay failed 1: %d < %d + %d\n",
                                dw, info->pos_x, outw);
                return -EINVAL;
        }
 
        if (dh < info->pos_y + outh) {
-               DSSDBG("check_overlay failed 2: %d < %d + %d\n",
+               DSSERR("check_overlay failed 2: %d < %d + %d\n",
                                dh, info->pos_y, outh);
                return -EINVAL;
        }