src/SDL_log.c
changeset 7191 75360622e65f
parent 7009 161b7b6a5303
child 7215 41e739a52f69
--- a/src/SDL_log.c	Sat May 18 12:48:50 2013 -0700
+++ b/src/SDL_log.c	Sat May 18 14:17:52 2013 -0700
@@ -138,7 +138,7 @@
     }
 
     if (category == SDL_LOG_CATEGORY_TEST) {
-        return SDL_test_priority;    
+        return SDL_test_priority;
     } else if (category == SDL_LOG_CATEGORY_APPLICATION) {
         return SDL_application_priority;
     } else if (category == SDL_LOG_CATEGORY_ASSERT) {
@@ -328,19 +328,18 @@
         }
     }
 #elif defined(__PSP__)
-//Simple Log System for PSP
-	{
-		unsigned int length;
-		char*		 output;
-		FILE*		 pFile;
-		length = SDL_strlen(SDL_priority_prefixes[priority]) + 2 + SDL_strlen(message) + 1;
+    {
+        unsigned int length;
+        char*        output;
+        FILE*        pFile;
+        length = SDL_strlen(SDL_priority_prefixes[priority]) + 2 + SDL_strlen(message) + 1;
         output = SDL_stack_alloc(char, length);
-		SDL_snprintf(output, length, "%s: %s", SDL_priority_prefixes[priority], message);
-		pFile = fopen ("SDL_Log.txt", "a");
-		fwrite (output, strlen (output), 1, pFile);
-		SDL_stack_free(output);
-		fclose (pFile);
-	}
+        SDL_snprintf(output, length, "%s: %s", SDL_priority_prefixes[priority], message);
+        pFile = fopen ("SDL_Log.txt", "a");
+        fwrite (output, strlen (output), 1, pFile);
+        SDL_stack_free(output);
+        fclose (pFile);
+    }
 #endif
 #if HAVE_STDIO_H
     fprintf(stderr, "%s: %s\n", SDL_priority_prefixes[priority], message);