Evas: Fix some debug output formatting
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 21 Oct 2014 03:08:42 +0000 (12:08 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 21 Oct 2014 06:59:50 +0000 (15:59 +0900)
Remove trailing newline.

src/modules/evas/engines/gl_x11/evas_x_main.c
src/modules/evas/engines/software_generic/evas_engine.c

index 8177460..bcbb449 100644 (file)
@@ -339,7 +339,9 @@ eng_window_new(Evas_Engine_Info_GL_X11 *info,
              if (!glXMakeContextCurrent(gw->disp, gw->glxwin, gw->glxwin,
                                         gw->context))
                {
-                  ERR("glXMakeContextCurrent(%p, %p, %p, %p)\n", (void *)gw->disp, (void *)gw->glxwin, (void *)gw->glxwin, (void *)gw->context);
+                  ERR("glXMakeContextCurrent(%p, %p, %p, %p) failed",
+                      (void *)gw->disp, (void *)gw->glxwin, (void *)gw->glxwin,
+                      (void *)gw->context);
                   eng_window_free(gw);
                   return NULL;
                }
@@ -348,7 +350,8 @@ eng_window_new(Evas_Engine_Info_GL_X11 *info,
           {
              if (!glXMakeCurrent(gw->disp, gw->win, gw->context))
                {
-                  ERR("glXMakeCurrent(%p, 0x%x, %p) failed\n", (void *)gw->disp, (unsigned int)gw->win, (void *)gw->context);
+                  ERR("glXMakeCurrent(%p, 0x%x, %p) failed", (void *)gw->disp,
+                      (unsigned int)gw->win, (void *)gw->context);
                   eng_window_free(gw);
                   return NULL;
                }
@@ -471,7 +474,7 @@ eng_window_new(Evas_Engine_Info_GL_X11 *info,
    gw->gl_context = glsym_evas_gl_common_context_new();
    if (!gw->gl_context)
      {
-        ERR("Unable to get a new context.\n");
+        ERR("Unable to get a new context.");
         eng_window_free(gw);
         return NULL;
      }
index 359ff53..f6b3420 100644 (file)
@@ -3132,7 +3132,7 @@ static Evas_Func func =
 static void
 sym_missing(void)
 {
-   ERR("GL symbols missing!\n");
+   ERR("GL symbols missing!");
 }
 
 static int
@@ -3144,7 +3144,7 @@ glue_sym_init(void)
    if (!dst) dst = (typeof(dst))dlsym(gl_lib_handle, sym); \
    if (!dst)  \
      { \
-        ERR("Symbol not found %s\n", sym); \
+        ERR("Symbol not found: %s", sym); \
         return 0; \
      }
 #define FALLBAK(dst, typ) if (!dst) dst = (typeof(dst))sym_missing;
@@ -3178,7 +3178,7 @@ gl_sym_init(void)
    //------------------------------------------------//
 #define FINDSYM(dst, sym, typ) \
    if (!dst) dst = (typeof(dst))dlsym(gl_lib_handle, sym); \
-   if (!dst) DBG("Symbol not found %s\n", sym);
+   if (!dst) DBG("Symbol not found: %s", sym);
 #define FALLBAK(dst, typ) if (!dst) dst = (typeof(dst))sym_missing;
 
    //------------------------------------------------------//
@@ -4096,7 +4096,7 @@ gl_lib_init(void)
 static void
 init_gl(void)
 {
-   DBG("Initializing Software OpenGL APIs...\n");
+   DBG("Initializing Software OpenGL APIs...");
 
    if (!gl_lib_init())
       DBG("Unable to support EvasGL in this engine module. Install OSMesa to get it running");