VirtualBox

Changeset 99689 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
May 9, 2023 8:28:38 AM (22 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157237
Message:

Guest Additions/VBoxClient: Dropped the idea of having an own logging facility (VBGHLogXXX) for shared guest/host code again; the (release) logger is flexible enough for this. bugref:10427

Location:
trunk/src/VBox/GuestHost
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/DisplayServerType.cpp

    r99635 r99689  
    3434#include <iprt/string.h>
    3535#include <iprt/ldr.h>
    36 
    37 #include <VBox/GuestHost/Log.h>
     36#include <iprt/log.h>
     37
    3838#include <VBox/GuestHost/DisplayServerType.h>
    3939
     
    102102VBGHDISPLAYSERVERTYPE VBGHDisplayServerTypeDetect(void)
    103103{
    104     VBGHLogVerbose(1, "Detecting display server ...\n");
     104    LogRel2(("Detecting display server ...\n"));
    105105
    106106    /* Try to connect to the wayland display, assuming it succeeds only when a wayland compositor is active: */
     
    180180        retSessionType = VBGHDISPLAYSERVERTYPE_X11;
    181181
    182     VBGHLogVerbose(1, "Detected via connection: %s\n", VBGHDisplayServerTypeToStr(retSessionType));
     182    LogRel2(("Detected via connection: %s\n", VBGHDisplayServerTypeToStr(retSessionType)));
    183183
    184184    /* If retSessionType is set, we assume we're done here;
     
    197197        waylandDisplayType = VBGHDISPLAYSERVERTYPE_WAYLAND;
    198198
    199     VBGHLogVerbose(1, "Wayland display type is: %s\n", VBGHDisplayServerTypeToStr(waylandDisplayType));
     199    LogRel2(("Wayland display type is: %s\n", VBGHDisplayServerTypeToStr(waylandDisplayType)));
    200200
    201201    VBGHDISPLAYSERVERTYPE xdgSessionType = VBGHDISPLAYSERVERTYPE_NONE;
     
    209209    }
    210210
    211     VBGHLogVerbose(1, "XDG session type is: %s\n", VBGHDisplayServerTypeToStr(xdgSessionType));
     211    LogRel2(("XDG session type is: %s\n", VBGHDisplayServerTypeToStr(xdgSessionType)));
    212212
    213213    VBGHDISPLAYSERVERTYPE xdgCurrentDesktopType = VBGHDISPLAYSERVERTYPE_NONE;
     
    222222    }
    223223
    224     VBGHLogVerbose(1, "XDG current desktop type is: %s\n", VBGHDisplayServerTypeToStr(xdgCurrentDesktopType));
     224    LogRel2(("XDG current desktop type is: %s\n", VBGHDisplayServerTypeToStr(xdgCurrentDesktopType)));
    225225
    226226    /* Set the returning type according to the precedence. */
     
    237237        && (a_Type1 != a_Type2)) \
    238238        { \
    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")); \
    243243            retSessionType = VBGHDISPLAYSERVERTYPE_NONE; \
    244244        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette