diff options
author | Brian Paul <[email protected]> | 2005-11-23 01:38:12 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-11-23 01:38:12 +0000 |
commit | b711eb793b68bb0c4561e5e345b76453dfac286b (patch) | |
tree | 725b54193d1b308991eb3a43e8e1339b206cb6d2 /src/egl/main/eglconfig.c | |
parent | f049ca4e33e0e5d06223a1c05815bc564b4bf06e (diff) |
use _eglLog()
Diffstat (limited to 'src/egl/main/eglconfig.c')
-rw-r--r-- | src/egl/main/eglconfig.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c index 9f3d3ad2785..1e1f88bf5f1 100644 --- a/src/egl/main/eglconfig.c +++ b/src/egl/main/eglconfig.c @@ -11,6 +11,7 @@ #include "egldisplay.h" #include "egldriver.h" #include "eglglobals.h" +#include "egllog.h" #define MIN2(A, B) (((A) < (B)) ? (A) : (B)) @@ -515,8 +516,9 @@ _eglFillInConfigs(_EGLConfig * configs, unsigned k; if ( bytes_per_pixel[index] == 0 ) { - fprintf(stderr, "[%s:%u] Framebuffer type 0x%04x has 0 bytes per pixel.\n", - __FUNCTION__, __LINE__, fb_type); + _eglLog(_EGL_INFO, + "[%s:%u] Framebuffer type 0x%04x has 0 bytes per pixel.", + __FUNCTION__, __LINE__, fb_type); return GL_FALSE; } @@ -547,8 +549,9 @@ _eglFillInConfigs(_EGLConfig * configs, break; default: - fprintf(stderr, "[%s:%u] Framebuffer format 0x%04x is not GL_RGB, GL_RGBA, GL_BGR, or GL_BGRA.\n", - __FUNCTION__, __LINE__, fb_format); + _eglLog(_EGL_WARNING, + "[%s:%u] Framebuffer format 0x%04x is not GL_RGB, GL_RGBA, GL_BGR, or GL_BGRA.", + __FUNCTION__, __LINE__, fb_format); return GL_FALSE; } |