Small improvement to PhysfsSubsystem debug output
authorIngo Ruhnke <grumbel@gmail.com>
Mon, 18 Aug 2014 19:05:46 +0000 (21:05 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Mon, 18 Aug 2014 19:05:46 +0000 (21:05 +0200)
src/supertux/main.cpp

index c7efd55..5f14737 100644 (file)
@@ -217,11 +217,12 @@ public:
   void print_search_path()
   {
     const char* writedir = PHYSFS_getWriteDir();
-    log_info << "PhysfsWritedDir: " << (writedir || "<null>") << std::endl;
+    log_info << "PhysfsWritedDir: " << (writedir ? writedir : "(null)") << std::endl;
+    log_info << "PhysfsSearchPath:" << std::endl;
     char** searchpath = PHYSFS_getSearchPath();
     for(char** i = searchpath; *i != NULL; ++i)
     {
-      log_info << "PhysfsSearchPath: " << *i << std::endl;
+      log_info << "  " << *i << std::endl;
     }
     PHYSFS_freeList(searchpath);
   }