[Mesa-dev] [PATCH 07/10] egl/haiku: kill off haiku_log()

Emil Velikov emil.l.velikov at gmail.com
Thu Jun 11 05:15:12 PDT 2015


It's an incompletecopy of the default _eglLog() implementation. Just use
the default logger.

Cc: Alexander von Gluck IV <kallisti5 at unixzen.com>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/egl/drivers/haiku/egl_haiku.cpp | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/src/egl/drivers/haiku/egl_haiku.cpp b/src/egl/drivers/haiku/egl_haiku.cpp
index 056fafc..2933acc 100644
--- a/src/egl/drivers/haiku/egl_haiku.cpp
+++ b/src/egl/drivers/haiku/egl_haiku.cpp
@@ -76,28 +76,6 @@ struct haiku_egl_surface
 };
 
 
-static void
-haiku_log(EGLint level, const char *msg)
-{
-	switch (level) {
-		case _EGL_DEBUG:
-			fprintf(stderr,"%s", msg);
-			break;
-		case _EGL_INFO:
-			fprintf(stderr,"%s", msg);
-			break;
-		case _EGL_WARNING:
-			fprintf(stderr,"%s", msg);
-			break;
-		case _EGL_FATAL:
-			fprintf(stderr,"%s", msg);
-			break;
-		default:
-			break;
-	}
-}
-
-
 /**
  * Called via eglCreateWindowSurface(), drv->API.CreateWindowSurface().
  */
@@ -241,8 +219,6 @@ init_haiku(_EGLDriver *drv, _EGLDisplay *dpy)
 {
 	CALLED();
 
-	_eglSetLogProc(haiku_log);
-
 	TRACE("Add configs\n");
 	haiku_add_configs_for_visuals(dpy);
 
-- 
2.4.2



More information about the mesa-dev mailing list