Removed newlines from error messages.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 26 Mar 2017 21:00:19 +0200
changeset 109451300a3135d61
parent 10944 924f8bdc008d
child 10946 623e8891e091
Removed newlines from error messages.
src/audio/nas/SDL_nasaudio.c
src/events/SDL_gesture.c
src/render/opengl/SDL_render_gl.c
src/render/opengles/SDL_render_gles.c
src/render/opengles2/SDL_render_gles2.c
src/video/SDL_stretch.c
src/video/android/SDL_androidwindow.c
src/video/cocoa/SDL_cocoawindow.m
src/video/directfb/SDL_DirectFB_render.c
src/video/directfb/SDL_DirectFB_window.c
src/video/haiku/SDL_bframebuffer.cc
src/video/haiku/SDL_bmodes.cc
src/video/pandora/SDL_pandora.c
src/video/psp/SDL_pspevents.c
src/video/psp/SDL_pspvideo.c
src/video/raspberry/SDL_rpivideo.c
src/video/uikit/SDL_uikitwindow.m
src/video/vivante/SDL_vivantevideo.c
src/video/windows/SDL_windowswindow.c
src/video/winrt/SDL_winrtvideo.cpp
src/video/x11/SDL_x11opengl.c
src/video/x11/SDL_x11window.c
test/testgl2.c
test/testgles2.c
     1.1 --- a/src/audio/nas/SDL_nasaudio.c	Thu Mar 23 13:53:09 2017 -0700
     1.2 +++ b/src/audio/nas/SDL_nasaudio.c	Sun Mar 26 21:00:19 2017 +0200
     1.3 @@ -116,7 +116,7 @@
     1.4              char *err = (char *) alloca(len);
     1.5              SDL_strlcpy(err, origerr, len);
     1.6              retval = -1;
     1.7 -            SDL_SetError("NAS: SDL_LoadObject('%s') failed: %s\n",
     1.8 +            SDL_SetError("NAS: SDL_LoadObject('%s') failed: %s",
     1.9                           nas_library, err);
    1.10          } else {
    1.11              retval = load_nas_syms();
     2.1 --- a/src/events/SDL_gesture.c	Thu Mar 23 13:53:09 2017 -0700
     2.2 +++ b/src/events/SDL_gesture.c	Sun Mar 26 21:00:19 2017 +0200
     2.3 @@ -374,7 +374,7 @@
     2.4          dist += d;
     2.5      }
     2.6      if (numPoints < DOLLARNPOINTS-1) {
     2.7 -        SDL_SetError("ERROR: NumPoints = %i\n",numPoints);
     2.8 +        SDL_SetError("ERROR: NumPoints = %i", numPoints);
     2.9          return 0;
    2.10      }
    2.11      /* copy the last point */
     3.1 --- a/src/render/opengl/SDL_render_gl.c	Thu Mar 23 13:53:09 2017 -0700
     3.2 +++ b/src/render/opengl/SDL_render_gl.c	Sun Mar 26 21:00:19 2017 +0200
     3.3 @@ -275,7 +275,7 @@
     3.4      do { \
     3.5          data->func = SDL_GL_GetProcAddress(#func); \
     3.6          if ( ! data->func ) { \
     3.7 -            return SDL_SetError("Couldn't load GL function %s: %s\n", #func, SDL_GetError()); \
     3.8 +            return SDL_SetError("Couldn't load GL function %s: %s", #func, SDL_GetError()); \
     3.9          } \
    3.10      } while ( 0 );
    3.11  #endif /* __SDL_NOGETPROCADDR__ */
     4.1 --- a/src/render/opengles/SDL_render_gles.c	Thu Mar 23 13:53:09 2017 -0700
     4.2 +++ b/src/render/opengles/SDL_render_gles.c	Sun Mar 26 21:00:19 2017 +0200
     4.3 @@ -197,7 +197,7 @@
     4.4      do { \
     4.5          data->func = SDL_GL_GetProcAddress(#func); \
     4.6          if ( ! data->func ) { \
     4.7 -            return SDL_SetError("Couldn't load GLES function %s: %s\n", #func, SDL_GetError()); \
     4.8 +            return SDL_SetError("Couldn't load GLES function %s: %s", #func, SDL_GetError()); \
     4.9          } \
    4.10      } while ( 0 );
    4.11  #define SDL_PROC_OES(ret,func,params) \
     5.1 --- a/src/render/opengles2/SDL_render_gles2.c	Thu Mar 23 13:53:09 2017 -0700
     5.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Sun Mar 26 21:00:19 2017 +0200
     5.3 @@ -297,7 +297,7 @@
     5.4      do { \
     5.5          data->func = SDL_GL_GetProcAddress(#func); \
     5.6          if ( ! data->func ) { \
     5.7 -            return SDL_SetError("Couldn't load GLES2 function %s: %s\n", #func, SDL_GetError()); \
     5.8 +            return SDL_SetError("Couldn't load GLES2 function %s: %s", #func, SDL_GetError()); \
     5.9          } \
    5.10      } while ( 0 );
    5.11  #endif /* __SDL_NOGETPROCADDR__ */
     6.1 --- a/src/video/SDL_stretch.c	Thu Mar 23 13:53:09 2017 -0700
     6.2 +++ b/src/video/SDL_stretch.c	Sun Mar 26 21:00:19 2017 +0200
     6.3 @@ -102,7 +102,7 @@
     6.4          store = STORE_WORD;
     6.5          break;
     6.6      default:
     6.7 -        return SDL_SetError("ASM stretch of %d bytes isn't supported\n", bpp);
     6.8 +        return SDL_SetError("ASM stretch of %d bytes isn't supported", bpp);
     6.9      }
    6.10  #ifdef HAVE_MPROTECT
    6.11      /* Make the code writeable */
     7.1 --- a/src/video/android/SDL_androidwindow.c	Thu Mar 23 13:53:09 2017 -0700
     7.2 +++ b/src/video/android/SDL_androidwindow.c	Sun Mar 26 21:00:19 2017 +0200
     7.3 @@ -128,7 +128,7 @@
     7.4          info->info.android.surface = data->egl_surface;
     7.5          return SDL_TRUE;
     7.6      } else {
     7.7 -        SDL_SetError("Application not compiled with SDL %d.%d\n",
     7.8 +        SDL_SetError("Application not compiled with SDL %d.%d",
     7.9                       SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
    7.10          return SDL_FALSE;
    7.11      }
     8.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Thu Mar 23 13:53:09 2017 -0700
     8.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sun Mar 26 21:00:19 2017 +0200
     8.3 @@ -1706,7 +1706,7 @@
     8.4          info->info.cocoa.window = nswindow;
     8.5          return SDL_TRUE;
     8.6      } else {
     8.7 -        SDL_SetError("Application not compiled with SDL %d.%d\n",
     8.8 +        SDL_SetError("Application not compiled with SDL %d.%d",
     8.9                       SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
    8.10          return SDL_FALSE;
    8.11      }
     9.1 --- a/src/video/directfb/SDL_DirectFB_render.c	Thu Mar 23 13:53:09 2017 -0700
     9.2 +++ b/src/video/directfb/SDL_DirectFB_render.c	Sun Mar 26 21:00:19 2017 +0200
     9.3 @@ -530,7 +530,7 @@
     9.4      /* find the right pixelformat */
     9.5      pixelformat = DirectFB_SDLToDFBPixelFormat(texture->format);
     9.6      if (pixelformat == DSPF_UNKNOWN) {
     9.7 -        SDL_SetError("Unknown pixel format %d\n", data->format);
     9.8 +        SDL_SetError("Unknown pixel format %d", data->format);
     9.9          goto error;
    9.10      }
    9.11  
    10.1 --- a/src/video/directfb/SDL_DirectFB_window.c	Thu Mar 23 13:53:09 2017 -0700
    10.2 +++ b/src/video/directfb/SDL_DirectFB_window.c	Sun Mar 26 21:00:19 2017 +0200
    10.3 @@ -469,7 +469,7 @@
    10.4          info->info.dfb.surface = windata->surface;
    10.5          return SDL_TRUE;
    10.6      } else {
    10.7 -        SDL_SetError("Application not compiled with SDL %d.%d\n",
    10.8 +        SDL_SetError("Application not compiled with SDL %d.%d",
    10.9                       SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
   10.10          return SDL_FALSE;
   10.11      }
    11.1 --- a/src/video/haiku/SDL_bframebuffer.cc	Thu Mar 23 13:53:09 2017 -0700
    11.2 +++ b/src/video/haiku/SDL_bframebuffer.cc	Sun Mar 26 21:00:19 2017 +0200
    11.3 @@ -77,7 +77,7 @@
    11.4  			
    11.5  	if(bitmap->InitCheck() != B_OK) {
    11.6  		delete bitmap;
    11.7 -		return SDL_SetError("Could not initialize back buffer!\n");
    11.8 +		return SDL_SetError("Could not initialize back buffer!");
    11.9  	}
   11.10  
   11.11  
    12.1 --- a/src/video/haiku/SDL_bmodes.cc	Thu Mar 23 13:53:09 2017 -0700
    12.2 +++ b/src/video/haiku/SDL_bmodes.cc	Sun Mar 26 21:00:19 2017 +0200
    12.3 @@ -310,7 +310,7 @@
    12.4  	}
    12.5  
    12.6  	if(bscreen.SetMode(bmode) != B_OK) {
    12.7 -		return SDL_SetError("Bad video mode\n");
    12.8 +		return SDL_SetError("Bad video mode");
    12.9  	}
   12.10  	
   12.11  	free(bmode_list);
    13.1 --- a/src/video/pandora/SDL_pandora.c	Thu Mar 23 13:53:09 2017 -0700
    13.2 +++ b/src/video/pandora/SDL_pandora.c	Sun Mar 26 21:00:19 2017 +0200
    13.3 @@ -304,7 +304,7 @@
    13.4      if (info->version.major <= SDL_MAJOR_VERSION) {
    13.5          return SDL_TRUE;
    13.6      } else {
    13.7 -        SDL_SetError("application not compiled with SDL %d.%d\n",
    13.8 +        SDL_SetError("application not compiled with SDL %d.%d",
    13.9                       SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
   13.10          return SDL_FALSE;
   13.11      }
   13.12 @@ -637,7 +637,7 @@
   13.13  
   13.14  
   13.15      if (wdata->gles_surface == 0) {
   13.16 -        SDL_SetError("Error : eglCreateWindowSurface failed;\n");
   13.17 +        SDL_SetError("Error : eglCreateWindowSurface failed;");
   13.18          return NULL;
   13.19      }
   13.20  
    14.1 --- a/src/video/psp/SDL_pspevents.c	Thu Mar 23 13:53:09 2017 -0700
    14.2 +++ b/src/video/psp/SDL_pspevents.c	Sun Mar 26 21:00:19 2017 +0200
    14.3 @@ -260,12 +260,12 @@
    14.4  #endif
    14.5      /* Start thread to read data */
    14.6      if((event_sem =  SDL_CreateSemaphore(1)) == NULL) {
    14.7 -        SDL_SetError("Can't create input semaphore\n");
    14.8 +        SDL_SetError("Can't create input semaphore");
    14.9          return;
   14.10      }
   14.11      running = 1;
   14.12      if((thread = SDL_CreateThreadInternal(EventUpdate, "PSPInputThread", 4096, NULL)) == NULL) {
   14.13 -        SDL_SetError("Can't create input thread\n");
   14.14 +        SDL_SetError("Can't create input thread");
   14.15          return;
   14.16      }
   14.17  }
    15.1 --- a/src/video/psp/SDL_pspvideo.c	Thu Mar 23 13:53:09 2017 -0700
    15.2 +++ b/src/video/psp/SDL_pspvideo.c	Sun Mar 26 21:00:19 2017 +0200
    15.3 @@ -297,7 +297,7 @@
    15.4      if (info->version.major <= SDL_MAJOR_VERSION) {
    15.5          return SDL_TRUE;
    15.6      } else {
    15.7 -        SDL_SetError("application not compiled with SDL %d.%d\n",
    15.8 +        SDL_SetError("application not compiled with SDL %d.%d",
    15.9                       SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
   15.10          return SDL_FALSE;
   15.11      }
    16.1 --- a/src/video/raspberry/SDL_rpivideo.c	Thu Mar 23 13:53:09 2017 -0700
    16.2 +++ b/src/video/raspberry/SDL_rpivideo.c	Sun Mar 26 21:00:19 2017 +0200
    16.3 @@ -373,7 +373,7 @@
    16.4      if (info->version.major <= SDL_MAJOR_VERSION) {
    16.5          return SDL_TRUE;
    16.6      } else {
    16.7 -        SDL_SetError("application not compiled with SDL %d.%d\n",
    16.8 +        SDL_SetError("application not compiled with SDL %d.%d",
    16.9                       SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
   16.10          return SDL_FALSE;
   16.11      }
    17.1 --- a/src/video/uikit/SDL_uikitwindow.m	Thu Mar 23 13:53:09 2017 -0700
    17.2 +++ b/src/video/uikit/SDL_uikitwindow.m	Sun Mar 26 21:00:19 2017 +0200
    17.3 @@ -360,7 +360,7 @@
    17.4  
    17.5              return SDL_TRUE;
    17.6          } else {
    17.7 -            SDL_SetError("Application not compiled with SDL %d.%d\n",
    17.8 +            SDL_SetError("Application not compiled with SDL %d.%d",
    17.9                           SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
   17.10              return SDL_FALSE;
   17.11          }
    18.1 --- a/src/video/vivante/SDL_vivantevideo.c	Thu Mar 23 13:53:09 2017 -0700
    18.2 +++ b/src/video/vivante/SDL_vivantevideo.c	Sun Mar 26 21:00:19 2017 +0200
    18.3 @@ -376,7 +376,7 @@
    18.4          info->info.vivante.window = data->native_window;
    18.5          return SDL_TRUE;
    18.6      } else {
    18.7 -        SDL_SetError("Application not compiled with SDL %d.%d\n",
    18.8 +        SDL_SetError("Application not compiled with SDL %d.%d",
    18.9                       SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
   18.10          return SDL_FALSE;
   18.11      }
    19.1 --- a/src/video/windows/SDL_windowswindow.c	Thu Mar 23 13:53:09 2017 -0700
    19.2 +++ b/src/video/windows/SDL_windowswindow.c	Sun Mar 26 21:00:19 2017 +0200
    19.3 @@ -713,7 +713,7 @@
    19.4  
    19.5          return SDL_TRUE;
    19.6      } else {
    19.7 -        SDL_SetError("Application not compiled with SDL %d.%d\n",
    19.8 +        SDL_SetError("Application not compiled with SDL %d.%d",
    19.9                       SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
   19.10          return SDL_FALSE;
   19.11      }
    20.1 --- a/src/video/winrt/SDL_winrtvideo.cpp	Thu Mar 23 13:53:09 2017 -0700
    20.2 +++ b/src/video/winrt/SDL_winrtvideo.cpp	Sun Mar 26 21:00:19 2017 +0200
    20.3 @@ -771,7 +771,7 @@
    20.4          info->info.winrt.window = reinterpret_cast<IInspectable *>(data->coreWindow.Get());
    20.5          return SDL_TRUE;
    20.6      } else {
    20.7 -        SDL_SetError("Application not compiled with SDL %d.%d\n",
    20.8 +        SDL_SetError("Application not compiled with SDL %d.%d",
    20.9                       SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
   20.10          return SDL_FALSE;
   20.11      }
    21.1 --- a/src/video/x11/SDL_x11opengl.c	Thu Mar 23 13:53:09 2017 -0700
    21.2 +++ b/src/video/x11/SDL_x11opengl.c	Sun Mar 26 21:00:19 2017 +0200
    21.3 @@ -566,7 +566,7 @@
    21.4      }
    21.5      else
    21.6      {
    21.7 -        SDL_SetError("Could not %s: %i (Base %i)\n", errorHandlerOperation, errorCode, errorBase);
    21.8 +        SDL_SetError("Could not %s: %i (Base %i)", errorHandlerOperation, errorCode, errorBase);
    21.9      }
   21.10  
   21.11      return (0);
    22.1 --- a/src/video/x11/SDL_x11window.c	Thu Mar 23 13:53:09 2017 -0700
    22.2 +++ b/src/video/x11/SDL_x11window.c	Sun Mar 26 21:00:19 2017 +0200
    22.3 @@ -1576,7 +1576,7 @@
    22.4          info->info.x11.window = data->xwindow;
    22.5          return SDL_TRUE;
    22.6      } else {
    22.7 -        SDL_SetError("Application not compiled with SDL %d.%d\n",
    22.8 +        SDL_SetError("Application not compiled with SDL %d.%d",
    22.9                       SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
   22.10          return SDL_FALSE;
   22.11      }
    23.1 --- a/test/testgl2.c	Thu Mar 23 13:53:09 2017 -0700
    23.2 +++ b/test/testgl2.c	Sun Mar 26 21:00:19 2017 +0200
    23.3 @@ -56,7 +56,7 @@
    23.4      do { \
    23.5          data->func = SDL_GL_GetProcAddress(#func); \
    23.6          if ( ! data->func ) { \
    23.7 -            return SDL_SetError("Couldn't load GL function %s: %s\n", #func, SDL_GetError()); \
    23.8 +            return SDL_SetError("Couldn't load GL function %s: %s", #func, SDL_GetError()); \
    23.9          } \
   23.10      } while ( 0 );
   23.11  #endif /* __SDL_NOGETPROCADDR__ */
    24.1 --- a/test/testgles2.c	Thu Mar 23 13:53:09 2017 -0700
    24.2 +++ b/test/testgles2.c	Sun Mar 26 21:00:19 2017 +0200
    24.3 @@ -59,7 +59,7 @@
    24.4      do { \
    24.5          data->func = SDL_GL_GetProcAddress(#func); \
    24.6          if ( ! data->func ) { \
    24.7 -            return SDL_SetError("Couldn't load GLES2 function %s: %s\n", #func, SDL_GetError()); \
    24.8 +            return SDL_SetError("Couldn't load GLES2 function %s: %s", #func, SDL_GetError()); \
    24.9          } \
   24.10      } while ( 0 );
   24.11  #endif /* __SDL_NOGETPROCADDR__ */