VirtualBox

Changeset 55997 in vbox for trunk/src


Ignore:
Timestamp:
May 21, 2015 9:52:17 AM (10 years ago)
Author:
vboxsync
Message:

DnD: Logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/draganddrop.cpp

    r55918 r55997  
    899899            if (e.xselectionrequest.target == xAtom(XA_TARGETS))
    900900            {
    901                 LogFlowThisFunc(("wnd=%#x '%s' asking for target list\n",
    902                                  e.xselectionrequest.requestor, propName.value));
     901                LogFlowThisFunc(("wnd=%#x ('%s') asking for target list\n",
     902                                 e.xselectionrequest.requestor, propName.value ? (const char *)propName.value : "<No name>"));
    903903
    904904                /* If so, set the window property with the formats on the requestor
     
    916916            else if (m_lstFormats.contains(e.xselectionrequest.target))
    917917            {
    918                 LogFlowThisFunc(("wnd=%#x '%s' asking for data, format=%s\n",
    919                                  e.xselectionrequest.requestor, propName.value,
     918                LogFlowThisFunc(("wnd=%#x ('%s') asking for data, format=%s\n",
     919                                 e.xselectionrequest.requestor, propName.value ? (const char *)propName.value : "<No name>",
    920920                                 xAtomToString(e.xselectionrequest.target).c_str()));
    921921
     
    933933                else
    934934                {
    935                     LogFlowThisFunc(("Saving selection notify message of wnd=%#x '%s'\n",
    936                                      e.xselectionrequest.requestor, propName.value));
     935                    LogFlowThisFunc(("Saving selection notify message of wnd=%#x ('%s')\n",
     936                                     e.xselectionrequest.requestor, propName.value ? (const char *)propName.value : "<No name>"));
    937937
    938938                    memcpy(&m_eventHgSelection, &e, sizeof(XEvent));
     
    948948            else
    949949            {
    950                 LogFlowThisFunc(("Refusing unknown command of wnd=%#x '%s'\n", e.xselectionrequest.requestor, propName.value));
     950                LogFlowThisFunc(("Refusing unknown command of wnd=%#x ('%s')\n", e.xselectionrequest.requestor,
     951                                 propName.value ? (const char *)propName.value : "<No name>"));
    951952
    952953                /* We don't understand this request message and therefore answer with an
     
    14221423int DragInstance::hgDrop(void)
    14231424{
    1424     LogFlowThisFunc(("wndCur=%#x, wndProxy=%#x, mode=%RU32, state=%RU32\n", m_wndProxy, m_wndCur, m_enmMode, m_enmState));
     1425    LogFlowThisFunc(("wndCur=%#x, wndProxy=%#x, mode=%RU32, state=%RU32\n", m_wndCur, m_wndProxy, m_enmMode, m_enmState));
    14251426
    14261427    if (   m_enmMode  != HG
     
    14471448    int xRc = XSendEvent(m_pDisplay, m_wndCur, False, NoEventMask, reinterpret_cast<XEvent*>(&m));
    14481449    if (RT_UNLIKELY(xRc == 0))
    1449         logError("Error sending XA_XdndDrop event to current window=%#x: %s\n", m_wndCur, gX11->xErrorToString(xRc).c_str());
     1450        logError("Error sending XA_XdndDrop event to wndCur=%#x: %s\n", m_wndCur, gX11->xErrorToString(xRc).c_str());
    14501451
    14511452    m_wndCur = None;
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