From b711eb793b68bb0c4561e5e345b76453dfac286b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 23 Nov 2005 01:38:12 +0000 Subject: use _eglLog() --- src/egl/main/eglconfig.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/egl/main/eglconfig.c') diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c index 9f3d3ad278..1e1f88bf5f 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; } -- cgit v1.2.3