src/SDL_log.c
changeset 7710 6364d6836634
parent 7614 af0bd07212bd
child 7727 627ce8499c81
     1.1 --- a/src/SDL_log.c	Wed Aug 28 17:17:21 2013 -0400
     1.2 +++ b/src/SDL_log.c	Wed Aug 28 22:05:16 2013 -0400
     1.3 @@ -332,16 +332,16 @@
     1.4              if (!attachResult) {
     1.5                      attachError = GetLastError();
     1.6                      if (attachError == ERROR_INVALID_HANDLE) {
     1.7 -                        OutputDebugString(TEXT("Parent process has no console"));
     1.8 +                        OutputDebugString(TEXT("Parent process has no console\r\n"));
     1.9                          consoleAttached = -1;
    1.10                      } else if (attachError == ERROR_GEN_FAILURE) {
    1.11 -                         OutputDebugString(TEXT("Could not attach to console of parent process"));
    1.12 +                         OutputDebugString(TEXT("Could not attach to console of parent process\r\n"));
    1.13                           consoleAttached = -1;
    1.14                      } else if (attachError == ERROR_ACCESS_DENIED) {  
    1.15                           /* Already attached */
    1.16                          consoleAttached = 1;
    1.17                      } else {
    1.18 -                        OutputDebugString(TEXT("Error attaching console"));
    1.19 +                        OutputDebugString(TEXT("Error attaching console\r\n"));
    1.20                          consoleAttached = -1;
    1.21                      }
    1.22                  } else {
    1.23 @@ -354,9 +354,9 @@
    1.24                  }
    1.25          }
    1.26  
    1.27 -        length = SDL_strlen(SDL_priority_prefixes[priority]) + 2 + SDL_strlen(message) + 1 + 1;
    1.28 +        length = SDL_strlen(SDL_priority_prefixes[priority]) + 2 + SDL_strlen(message) + 1 + 1 + 1;
    1.29          output = SDL_stack_alloc(char, length);
    1.30 -        SDL_snprintf(output, length, "%s: %s\n", SDL_priority_prefixes[priority], message);
    1.31 +        SDL_snprintf(output, length, "%s: %s\r\n", SDL_priority_prefixes[priority], message);
    1.32          tstr = WIN_UTF8ToString(output);
    1.33          
    1.34          /* Output to debugger */
    1.35 @@ -365,10 +365,10 @@
    1.36          /* Screen output to stderr, if console was attached. */
    1.37          if (consoleAttached == 1) {
    1.38                  if (!WriteConsole(stderrHandle, tstr, lstrlen(tstr), &charsWritten, NULL)) {
    1.39 -                    OutputDebugString(TEXT("Error calling WriteConsole"));
    1.40 +                    OutputDebugString(TEXT("Error calling WriteConsole\r\n"));
    1.41                  }
    1.42                  if (charsWritten == ERROR_NOT_ENOUGH_MEMORY) {
    1.43 -                    OutputDebugString(TEXT("Insufficient heap memory to write message"));
    1.44 +                    OutputDebugString(TEXT("Insufficient heap memory to write message\r\n"));
    1.45                  }
    1.46          }
    1.47