summaryrefslogtreecommitdiff
path: root/src/egl/main/eglconfig.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-11-23 01:38:12 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-11-23 01:38:12 +0000
commitb711eb793b68bb0c4561e5e345b76453dfac286b (patch)
tree725b54193d1b308991eb3a43e8e1339b206cb6d2 /src/egl/main/eglconfig.c
parentf049ca4e33e0e5d06223a1c05815bc564b4bf06e (diff)
use _eglLog()
Diffstat (limited to 'src/egl/main/eglconfig.c')
-rw-r--r--src/egl/main/eglconfig.c11
1 files changed, 7 insertions, 4 deletions
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;
}