ecore-x: make error prints DBG not ERR so we don't get spammed

because an error with no idea where it came from since its async is
pretty much usless noise. if you want this to be useful you literally
need to do an xsync every x call and be able to get backtraces... the
xsync then would be inside ecore-x. and of course this would be so
nastily slow that you need to make it an option at build...
This commit is contained in:
Carsten Haitzler 2013-07-19 09:23:11 +09:00
parent 18b27878aa
commit e7862929e4
1 changed files with 17 additions and 17 deletions

View File

@ -102,55 +102,55 @@ _ecore_x_error_handle(Display *d,
switch (ev->error_code)
{
case BadRequest: /* bad request code */
ERR("BadRequest");
DBG("BadRequest");
break;
case BadValue: /* int parameter out of range */
ERR("BadValue");
DBG("BadValue");
break;
case BadWindow: /* parameter not a Window */
ERR("BadWindow");
DBG("BadWindow");
break;
case BadPixmap: /* parameter not a Pixmap */
ERR("BadPixmap");
DBG("BadPixmap");
break;
case BadAtom: /* parameter not an Atom */
ERR("BadAtom");
DBG("BadAtom");
break;
case BadCursor: /* parameter not a Cursor */
ERR("BadCursor");
DBG("BadCursor");
break;
case BadFont: /* parameter not a Font */
ERR("BadFont");
DBG("BadFont");
break;
case BadMatch: /* parameter mismatch */
ERR("BadMatch");
DBG("BadMatch");
break;
case BadDrawable: /* parameter not a Pixmap or Window */
ERR("BadDrawable");
DBG("BadDrawable");
break;
case BadAccess: /* depending on context */
ERR("BadAccess");
DBG("BadAccess");
break;
case BadAlloc: /* insufficient resources */
ERR("BadAlloc");
DBG("BadAlloc");
break;
case BadColor: /* no such colormap */
ERR("BadColor");
DBG("BadColor");
break;
case BadGC: /* parameter not a GC */
ERR("BadGC");
DBG("BadGC");
break;
case BadIDChoice: /* choice not in range or already used */
ERR("BadIDChoice");
DBG("BadIDChoice");
break;
case BadName: /* font or color name doesn't exist */
ERR("BadName");
DBG("BadName");
break;
case BadLength: /* Request length incorrect */
ERR("BadLength");
DBG("BadLength");
break;
case BadImplementation: /* server is defective */
ERR("BadImplementation");
DBG("BadImplementation");
break;
}
if (d == _ecore_x_disp)