src/SDL_log.c
changeset 7191 75360622e65f
parent 7009 161b7b6a5303
child 7215 41e739a52f69
     1.1 --- a/src/SDL_log.c	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/src/SDL_log.c	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -138,7 +138,7 @@
     1.4      }
     1.5  
     1.6      if (category == SDL_LOG_CATEGORY_TEST) {
     1.7 -        return SDL_test_priority;    
     1.8 +        return SDL_test_priority;
     1.9      } else if (category == SDL_LOG_CATEGORY_APPLICATION) {
    1.10          return SDL_application_priority;
    1.11      } else if (category == SDL_LOG_CATEGORY_ASSERT) {
    1.12 @@ -328,19 +328,18 @@
    1.13          }
    1.14      }
    1.15  #elif defined(__PSP__)
    1.16 -//Simple Log System for PSP
    1.17 -	{
    1.18 -		unsigned int length;
    1.19 -		char*		 output;
    1.20 -		FILE*		 pFile;
    1.21 -		length = SDL_strlen(SDL_priority_prefixes[priority]) + 2 + SDL_strlen(message) + 1;
    1.22 +    {
    1.23 +        unsigned int length;
    1.24 +        char*        output;
    1.25 +        FILE*        pFile;
    1.26 +        length = SDL_strlen(SDL_priority_prefixes[priority]) + 2 + SDL_strlen(message) + 1;
    1.27          output = SDL_stack_alloc(char, length);
    1.28 -		SDL_snprintf(output, length, "%s: %s", SDL_priority_prefixes[priority], message);
    1.29 -		pFile = fopen ("SDL_Log.txt", "a");
    1.30 -		fwrite (output, strlen (output), 1, pFile);
    1.31 -		SDL_stack_free(output);
    1.32 -		fclose (pFile);
    1.33 -	}
    1.34 +        SDL_snprintf(output, length, "%s: %s", SDL_priority_prefixes[priority], message);
    1.35 +        pFile = fopen ("SDL_Log.txt", "a");
    1.36 +        fwrite (output, strlen (output), 1, pFile);
    1.37 +        SDL_stack_free(output);
    1.38 +        fclose (pFile);
    1.39 +    }
    1.40  #endif
    1.41  #if HAVE_STDIO_H
    1.42      fprintf(stderr, "%s: %s\n", SDL_priority_prefixes[priority], message);