VirtualBox

Changeset 21651 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jul 16, 2009 1:57:25 PM (15 years ago)
Author:
vboxsync
Message:

SharedClipboard/x11: switch logging from debug to user-enabled release logging so that users can trace clipboard issues

File:
1 edited

Legend:

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

    r21227 r21651  
    7171{
    7272    int rc;
    73     LogFlowFunc(("u32Format=%d, pv=%p, cb=%d\n", u32Format, pv, cb));
     73    LogRelFlowFunc(("u32Format=%d, pv=%p, cb=%d\n", u32Format, pv, cb));
    7474    rc = VbglR3ClipboardWriteData(g_ctx.client, u32Format, pv, cb);
    75     LogFlowFunc(("rc=%Rrc\n", rc));
     75    LogRelFlowFunc(("rc=%Rrc\n", rc));
    7676    return rc;
    7777}
     
    9696
    9797    *ppv = 0;
    98     LogFlowFunc(("u32Format=%u\n", u32Format));
     98    LogRelFlowFunc(("u32Format=%u\n", u32Format));
    9999    if (RT_UNLIKELY(!pv))
    100100        rc = VERR_NO_MEMORY;
     
    129129            RTMemFree(pv);
    130130    }
    131     LogFlowFunc(("returning %Rrc\n", rc));
    132     if (RT_SUCCESS(rc))
    133         LogFlow(("    *pcb=%d\n", *pcb));
     131    LogRelFlowFunc(("returning %Rrc\n", rc));
     132    if (RT_SUCCESS(rc))
     133        LogRelFlow(("    *pcb=%d\n", *pcb));
    134134    return rc;
    135135}
     
    152152{
    153153    int rc;
    154     LogFlowFunc(("u32Formats=%d\n", u32Formats));
     154    LogRelFlowFunc(("u32Formats=%d\n", u32Formats));
    155155    rc = VbglR3ClipboardReportFormats(g_ctx.client, u32Formats);
    156     LogFlowFunc(("rc=%Rrc\n", rc));
     156    LogRelFlowFunc(("rc=%Rrc\n", rc));
    157157}
    158158
     
    186186{
    187187    int rc = VINF_SUCCESS;
    188     LogFlowFunc(("\n"));
     188    LogRelFlowFunc(("\n"));
    189189
    190190    /* Sanity */
     
    209209    if (RT_FAILURE(rc) && g_ctx.pBackend)
    210210        ClipDestructX11(g_ctx.pBackend);
    211     LogFlowFunc(("g_ctx.client=%u rc=%Rrc\n", g_ctx.client, rc));
     211    LogRelFlowFunc(("g_ctx.client=%u rc=%Rrc\n", g_ctx.client, rc));
    212212    return rc;
    213213}
     
    219219{
    220220    int rc;
    221     LogFlowFunc(("Starting guest clipboard service\n"));
     221    LogRelFlowFunc(("Starting guest clipboard service\n"));
    222222    bool fExiting = false;
    223223
     
    237237                     * future requests from guest applications.
    238238                     */
    239                     LogFlowFunc(("VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS fFormats=%x\n", fFormats));
     239                    LogRelFlowFunc(("VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS fFormats=%x\n", fFormats));
    240240                    ClipAnnounceFormatToX11(g_ctx.pBackend, fFormats);
    241241                    break;
     
    245245                {
    246246                    /* The host needs data in the specified format. */
    247                     LogFlowFunc(("VBOX_SHARED_CLIPBOARD_HOST_MSG_READ_DATA fFormats=%x\n", fFormats));
     247                    LogRelFlowFunc(("VBOX_SHARED_CLIPBOARD_HOST_MSG_READ_DATA fFormats=%x\n", fFormats));
    248248                    CLIPREADCBREQ *pReq;
    249249                    pReq = (CLIPREADCBREQ *)RTMemAllocZ(sizeof(*pReq));
     
    265265                {
    266266                    /* The host is terminating. */
    267                     LogFlowFunc(("VBOX_SHARED_CLIPBOARD_HOST_MSG_QUIT\n"));
     267                    LogRelFlowFunc(("VBOX_SHARED_CLIPBOARD_HOST_MSG_QUIT\n"));
    268268                    if (RT_SUCCESS(ClipStopX11(g_ctx.pBackend)))
    269269                        ClipDestructX11(g_ctx.pBackend);
     
    273273
    274274                default:
    275                     Log(("Unsupported message from host!!!\n"));
     275                    LogRel2(("Unsupported message from host!!!\n"));
    276276            }
    277277        }
    278278
    279         LogFlow(("processed host event rc = %d\n", rc));
    280     }
    281     LogFlowFunc(("rc=%d\n", rc));
     279        LogRelFlow(("processed host event rc = %d\n", rc));
     280    }
     281    LogRelFlowFunc(("rc=%d\n", rc));
    282282    return rc;
    283283}
     
    296296            rc = vboxClipboardMain();
    297297        if (RT_FAILURE(rc))
    298             LogFunc(("guest clipboard service terminated annormally: return code %Rrc\n", rc));
     298            LogRelFunc(("guest clipboard service terminated annormally: return code %Rrc\n", rc));
    299299        return rc;
    300300    }
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