Browse Source

UI: Use blog for "Attempted path" log messages

These use printf for some reason. Instead of always printing them and
having them clutter the log, blog them with debug level. They don't
appear in log files anyway.
tt2468 3 years ago
parent
commit
e141def61b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      UI/platform-windows.cpp
  2. 1 1
      UI/platform-x11.cpp

+ 1 - 1
UI/platform-windows.cpp

@@ -46,7 +46,7 @@ static inline bool check_path(const char *data, const char *path,
 	str << path << data;
 	output = str.str();
 
-	printf("Attempted path: %s\n", output.c_str());
+	blog(LOG_DEBUG, "Attempted path: %s", output.c_str());
 
 	return os_file_exists(output.c_str());
 }

+ 1 - 1
UI/platform-x11.cpp

@@ -178,7 +178,7 @@ static inline bool check_path(const char *data, const char *path,
 	str << path << data;
 	output = str.str();
 
-	printf("Attempted path: %s\n", output.c_str());
+	blog(LOG_DEBUG, "Attempted path: %s", output.c_str());
 
 	return (access(output.c_str(), R_OK) == 0);
 }