|
36 | 36 | #include "common_config.h" |
37 | 37 | #endif // OPENXR_HAVE_COMMON_CONFIG |
38 | 38 |
|
39 | | -// Consumers of this file must ensure these two functions are implemented. For example, the loader will implement these functions so |
40 | | -// that it can route messages through the loader's logging system. |
| 39 | +// Consumers of this file must ensure this function is implemented. For example, the loader will implement this function so that it |
| 40 | +// can route messages through the loader's logging system. |
41 | 41 | void LogPlatformUtilsError(const std::string& message); |
42 | | -void LogPlatformUtilsWarning(const std::string& message); |
43 | 42 |
|
44 | 43 | // Environment variables |
45 | 44 | #if defined(XR_OS_LINUX) || defined(XR_OS_APPLE) |
@@ -85,9 +84,9 @@ static inline std::string PlatformUtilsGetSecureEnv(const char* name) { |
85 | 84 | if (str == nullptr) { |
86 | 85 | str = detail::ImplGetEnv(name); |
87 | 86 | if (!str.empty()) { |
88 | | - LogPlatformUtilsWarning(std::string("!!! WARNING !!! Environment variable ") + name + |
89 | | - " is being ignored due to running with secure execution. The value '" + str + |
90 | | - "' will NOT be used."); |
| 87 | + LogPlatformUtilsError(std::string("!!! WARNING !!! Environment variable ") + name + |
| 88 | + " is being ignored due to running with secure execution. The value '" + str + |
| 89 | + "' will NOT be used."); |
91 | 90 | } |
92 | 91 | return {}; |
93 | 92 | } |
@@ -266,9 +265,9 @@ static inline std::string PlatformUtilsGetSecureEnv(const char* name) { |
266 | 265 | // Do not allow high integrity processes to act on data that can be controlled by medium integrity processes. |
267 | 266 | if (IsHighIntegrityLevel()) { |
268 | 267 | if (!envValue.empty()) { |
269 | | - LogPlatformUtilsWarning(std::string("!!! WARNING !!! Environment variable ") + name + |
270 | | - " is being ignored due to running from an elevated context. The value '" + envValue + |
271 | | - "' will NOT be used."); |
| 268 | + LogPlatformUtilsError(std::string("!!! WARNING !!! Environment variable ") + name + |
| 269 | + " is being ignored due to running from an elevated context. The value '" + envValue + |
| 270 | + "' will NOT be used."); |
272 | 271 | } |
273 | 272 | return {}; |
274 | 273 | } |
|
0 commit comments