From 1ed20ee677b031e4d7ed0a5bb9efcb402a328ec8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Tue, 11 Mar 2014 09:48:55 -0400 Subject: [PATCH] lib/mnit_linux: replace calls to LOGI/LOGW with fprintf MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/mnit_linux/linux_opengles1.nit | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/mnit_linux/linux_opengles1.nit b/lib/mnit_linux/linux_opengles1.nit index 93058fc..00a037f 100644 --- a/lib/mnit_linux/linux_opengles1.nit +++ b/lib/mnit_linux/linux_opengles1.nit @@ -25,15 +25,6 @@ import mnit # for import sdl -in "C Header" `{ - #define LOGW(...) ((void)fprintf(stderr, "# warn: %s", __VA_ARGS__)) - #ifdef DEBUG - #define LOGI(...) ((void)fprintf(stderr, "# info: %s", __VA_ARGS__)) - #else - #define LOGI(...) (void)0 - #endif -`} - in "C" `{ NativeWindowType mnit_window; EGLNativeDisplayType mnit_native_display; @@ -102,7 +93,7 @@ redef extern Opengles1Image sdl_image = IMG_Load( String_to_cstring( path ) ); if ( !sdl_image ) { - LOGW( "SDL failed to load image <%s>: %s\n", String_to_cstring( path ), IMG_GetError() ); + fprintf(stderr, "SDL failed to load image <%s>: %s\n", String_to_cstring(path), IMG_GetError()); return NULL; } else { opengles_image = mnit_opengles_load_image( sdl_image->pixels, sdl_image->w, sdl_image->h, sdl_image->format->Amask ); -- 1.7.9.5