Changeset 99689 in vbox for trunk/src/VBox/GuestHost
- Timestamp:
- May 9, 2023 8:28:38 AM (22 months ago)
- svn:sync-xref-src-repo-rev:
- 157237
- Location:
- trunk/src/VBox/GuestHost
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/DisplayServerType.cpp
r99635 r99689 34 34 #include <iprt/string.h> 35 35 #include <iprt/ldr.h> 36 37 #include <VBox/GuestHost/Log.h> 36 #include <iprt/log.h> 37 38 38 #include <VBox/GuestHost/DisplayServerType.h> 39 39 … … 102 102 VBGHDISPLAYSERVERTYPE VBGHDisplayServerTypeDetect(void) 103 103 { 104 VBGHLogVerbose(1, "Detecting display server ...\n");104 LogRel2(("Detecting display server ...\n")); 105 105 106 106 /* Try to connect to the wayland display, assuming it succeeds only when a wayland compositor is active: */ … … 180 180 retSessionType = VBGHDISPLAYSERVERTYPE_X11; 181 181 182 VBGHLogVerbose(1, "Detected via connection: %s\n", VBGHDisplayServerTypeToStr(retSessionType));182 LogRel2(("Detected via connection: %s\n", VBGHDisplayServerTypeToStr(retSessionType))); 183 183 184 184 /* If retSessionType is set, we assume we're done here; … … 197 197 waylandDisplayType = VBGHDISPLAYSERVERTYPE_WAYLAND; 198 198 199 VBGHLogVerbose(1, "Wayland display type is: %s\n", VBGHDisplayServerTypeToStr(waylandDisplayType));199 LogRel2(("Wayland display type is: %s\n", VBGHDisplayServerTypeToStr(waylandDisplayType))); 200 200 201 201 VBGHDISPLAYSERVERTYPE xdgSessionType = VBGHDISPLAYSERVERTYPE_NONE; … … 209 209 } 210 210 211 VBGHLogVerbose(1, "XDG session type is: %s\n", VBGHDisplayServerTypeToStr(xdgSessionType));211 LogRel2(("XDG session type is: %s\n", VBGHDisplayServerTypeToStr(xdgSessionType))); 212 212 213 213 VBGHDISPLAYSERVERTYPE xdgCurrentDesktopType = VBGHDISPLAYSERVERTYPE_NONE; … … 222 222 } 223 223 224 VBGHLogVerbose(1, "XDG current desktop type is: %s\n", VBGHDisplayServerTypeToStr(xdgCurrentDesktopType));224 LogRel2(("XDG current desktop type is: %s\n", VBGHDisplayServerTypeToStr(xdgCurrentDesktopType))); 225 225 226 226 /* Set the returning type according to the precedence. */ … … 237 237 && (a_Type1 != a_Type2)) \ 238 238 { \ 239 VBGHLogError("Unable to reliably detect desktop environment:\n"); \240 VBGHLogError("Mismatch between %s (%s) and %s (%s) detected! This might indicate a misconfigured and/or broken system!\n", \241 #a_Type1, VBGHDisplayServerTypeToStr(a_Type1), #a_Type2, VBGHDisplayServerTypeToStr(a_Type2)); \242 VBGHLogError("Use --session-type to override this detection.\n"); \239 LogRel(("Unable to reliably detect desktop environment:\n")); \ 240 LogRel(("Mismatch between %s (%s) and %s (%s) detected! This might indicate a misconfigured and/or broken system!\n", \ 241 #a_Type1, VBGHDisplayServerTypeToStr(a_Type1), #a_Type2, VBGHDisplayServerTypeToStr(a_Type2))); \ 242 LogRel(("Use --session-type to override this detection.\n")); \ 243 243 retSessionType = VBGHDISPLAYSERVERTYPE_NONE; \ 244 244 }
Note:
See TracChangeset
for help on using the changeset viewer.