VirtualBox

Changeset 78439 in vbox


Ignore:
Timestamp:
May 7, 2019 5:41:25 PM (6 years ago)
Author:
vboxsync
Message:

Shared Clipboard/HostSvc: Logging adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp

    r78346 r78439  
    202202    if (pClient->fMsgQuit)
    203203    {
    204         LogRelFlow(("vboxSvcClipboardReturnMsg: Quit\n"));
     204        LogFlowFunc(("vboxSvcClipboardReturnMsg: Quit\n"));
    205205        VBoxHGCMParmUInt32Set(&paParms[0], VBOX_SHARED_CLIPBOARD_HOST_MSG_QUIT);
    206206        VBoxHGCMParmUInt32Set(&paParms[1], 0);
     
    211211        uint32_t fFormat = 0;
    212212
    213         LogRelFlow(("vboxSvcClipboardReturnMsg: ReadData %02X\n", pClient->u32RequestedFormat));
     213        LogFlowFunc(("vboxSvcClipboardReturnMsg: ReadData %02X\n", pClient->u32RequestedFormat));
    214214        if (pClient->u32RequestedFormat & VBOX_SHARED_CLIPBOARD_FMT_UNICODETEXT)
    215215            fFormat = VBOX_SHARED_CLIPBOARD_FMT_UNICODETEXT;
     
    228228    else if (pClient->fMsgFormats)
    229229    {
    230         LogRelFlow(("vboxSvcClipboardReturnMsg: Formats %02X\n", pClient->u32AvailableFormats));
     230        LogFlowFunc(("vboxSvcClipboardReturnMsg: Formats %02X\n", pClient->u32AvailableFormats));
    231231        VBoxHGCMParmUInt32Set(&paParms[0], VBOX_SHARED_CLIPBOARD_HOST_MSG_REPORT_FORMATS);
    232232        VBoxHGCMParmUInt32Set(&paParms[1], pClient->u32AvailableFormats);
     
    236236    {
    237237        /* No pending messages. */
    238         LogRelFlow(("vboxSvcClipboardReturnMsg: no message\n"));
     238        LogFlowFunc(("vboxSvcClipboardReturnMsg: no message\n"));
    239239        return false;
    240240    }
     
    254254            case VBOX_SHARED_CLIPBOARD_HOST_MSG_QUIT:
    255255            {
    256                 LogRelFlow(("vboxSvcClipboardReportMsg: Quit\n"));
     256                LogFlowFunc(("Quit\n"));
    257257                pClient->fMsgQuit = true;
    258258            } break;
     
    266266                }
    267267
    268                 LogRelFlow(("vboxSvcClipboardReportMsg: ReadData %02X\n", u32Formats));
     268                LogFlowFunc(("ReadData %02X\n", u32Formats));
    269269                pClient->u32RequestedFormat = u32Formats;
    270270                pClient->fMsgReadData = true;
     
    279279                }
    280280
    281                 LogRelFlow(("vboxSvcClipboardReportMsg: Formats %02X\n", u32Formats));
     281                LogFlowFunc(("Formats %02X\n", u32Formats));
    282282                pClient->u32AvailableFormats = u32Formats;
    283283                pClient->fMsgFormats = true;
     
    286286            {
    287287                /* Invalid message. */
    288                 LogRelFlow(("vboxSvcClipboardReportMsg: invalid message %d\n", u32Msg));
     288                LogFlowFunc(("invalid message %d\n", u32Msg));
    289289            } break;
    290290        }
     
    308308            if (fMessageReturned)
    309309            {
    310                 LogRelFlow(("vboxSvcClipboardReportMsg: CallComplete\n"));
     310                LogFlowFunc(("CallComplete\n"));
    311311                g_pHelpers->pfnCallComplete(callHandle, VINF_SUCCESS);
    312312            }
     
    356356    VBOXCLIPBOARDCLIENTDATA *pClient = (VBOXCLIPBOARDCLIENTDATA *)pvClient;
    357357
    358     LogRel2(("svcDisconnect: u32ClientID = %d\n", u32ClientID));
     358    LogFunc(("u32ClientID = %d\n", u32ClientID));
    359359
    360360    vboxSvcClipboardReportMsg(pClient, VBOX_SHARED_CLIPBOARD_HOST_MSG_QUIT, 0);
     
    400400    }
    401401
    402     LogRel2(("vboxClipboardConnect: rc = %Rrc\n", rc));
    403 
     402    LogFlowFuncLeaveRC(rc);
    404403    return rc;
    405404}
     
    417416    int rc = VINF_SUCCESS;
    418417
    419     LogRel2(("svcCall: u32ClientID = %d, fn = %d, cParms = %d, pparms = %d\n",
     418    LogFunc(("u32ClientID = %d, fn = %d, cParms = %d, pparms = %d\n",
    420419             u32ClientID, u32Function, cParms, paParms));
    421420
     
    430429    {
    431430        /** @todo parameters other than 32 bit */
    432         LogRel2(("    pparms[%d]: type %d value %d\n", i, paParms[i].type, paParms[i].u.uint32));
     431        LogFunc(("    pparms[%d]: type %d value %d\n", i, paParms[i].type, paParms[i].u.uint32));
    433432    }
    434433#endif
     
    439438        {
    440439            /* The quest requests a host message. */
    441             LogRel2(("svcCall: VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG\n"));
     440            LogFunc(("VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG\n"));
    442441
    443442            if (cParms != VBOX_SHARED_CLIPBOARD_CPARMS_GET_HOST_MSG)
     
    472471                        pClient->async.paParms    = paParms;
    473472
    474                         LogRel2(("svcCall: async.\n"));
     473                        LogFunc(("async.\n"));
    475474                    }
    476475
     
    487486        {
    488487            /* The guest reports that some formats are available. */
    489             LogRel2(("svcCall: VBOX_SHARED_CLIPBOARD_FN_FORMATS\n"));
     488            LogFunc(("VBOX_SHARED_CLIPBOARD_FN_FORMATS\n"));
    490489
    491490            if (cParms != VBOX_SHARED_CLIPBOARD_CPARMS_FORMATS)
     
    532531        {
    533532            /* The guest wants to read data in the given format. */
    534             LogRel2(("svcCall: VBOX_SHARED_CLIPBOARD_FN_READ_DATA\n"));
     533            LogFunc(("VBOX_SHARED_CLIPBOARD_FN_READ_DATA\n"));
    535534
    536535            if (cParms != VBOX_SHARED_CLIPBOARD_CPARMS_READ_DATA)
     
    578577                            g_fReadingData = true;
    579578                            rc = g_pfnExtension (g_pvExtension, VBOX_CLIPBOARD_EXT_FN_DATA_READ, &parms, sizeof (parms));
    580                             LogRelFlow(("DATA: g_fDelayedAnnouncement = %d, g_u32DelayedFormats = 0x%x\n", g_fDelayedAnnouncement, g_u32DelayedFormats));
     579                            LogFlowFunc(("DATA: g_fDelayedAnnouncement = %d, g_u32DelayedFormats = 0x%x\n", g_fDelayedAnnouncement, g_u32DelayedFormats));
    581580                            if (g_fDelayedAnnouncement)
    582581                            {
     
    628627        {
    629628            /* The guest writes the requested data. */
    630             LogRel2(("svcCall: VBOX_SHARED_CLIPBOARD_FN_WRITE_DATA\n"));
     629            LogFunc(("VBOX_SHARED_CLIPBOARD_FN_WRITE_DATA\n"));
    631630
    632631            if (cParms != VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA)
     
    686685    }
    687686
    688     LogRelFlow(("svcCall: rc = %Rrc\n", rc));
     687    LogFlowFunc(("rc = %Rrc\n", rc));
    689688
    690689    if (!fAsynchronousProcessing)
     
    727726    int rc = VINF_SUCCESS;
    728727
    729     LogRel2(("svcHostCall: fn = %d, cParms = %d, pparms = %d\n",
     728    LogFunc(("svcHostCall: fn = %d, cParms = %d, pparms = %d\n",
    730729             u32Function, cParms, paParms));
    731730
     
    734733        case VBOX_SHARED_CLIPBOARD_HOST_FN_SET_MODE:
    735734        {
    736             LogRel2(("svcCall: VBOX_SHARED_CLIPBOARD_HOST_FN_SET_MODE\n"));
     735            LogFunc(("VBOX_SHARED_CLIPBOARD_HOST_FN_SET_MODE\n"));
    737736
    738737            if (cParms != 1)
     
    765764            rc = VBoxHGCMParmUInt32Get (&paParms[0], &u32Headless);
    766765            if (RT_SUCCESS(rc))
    767                 LogRelFlow(("svcCall: VBOX_SHARED_CLIPBOARD_HOST_FN_SET_HEADLESS, u32Headless=%u\n",
     766                LogFlowFunc(("VBOX_SHARED_CLIPBOARD_HOST_FN_SET_HEADLESS, u32Headless=%u\n",
    768767                            (unsigned) u32Headless));
    769768            g_fHeadless = RT_BOOL(u32Headless);
     
    774773    }
    775774
    776     LogRelFlow(("svcHostCall: rc = %Rrc\n", rc));
     775    LogFlowFunc(("svcHostCall: rc = %Rrc\n", rc));
    777776    return rc;
    778777}
     
    802801     * Pending requests, if any, will be completed in svcDisconnect.
    803802     */
    804     LogRel2(("svcSaveState: u32ClientID = %d\n", u32ClientID));
     803    LogFunc(("u32ClientID = %d\n", u32ClientID));
    805804
    806805    VBOXCLIPBOARDCLIENTDATA *pClient = (VBOXCLIPBOARDCLIENTDATA *)pvClient;
     
    866865#ifndef UNIT_TEST
    867866    RT_NOREF(uVersion);
    868     LogRel2(("svcLoadState: u32ClientID = %d\n", u32ClientID));
     867
     868    LogFunc(("u32ClientID = %d\n", u32ClientID));
    869869
    870870    VBOXCLIPBOARDCLIENTDATA *pClient = (VBOXCLIPBOARDCLIENTDATA *)pvClient;
     
    921921    else
    922922    {
    923         LogRel(("Client data size mismatch: got %#x\n", lenOrVer));
     923        LogFunc(("Client data size mismatch: got %#x\n", lenOrVer));
    924924        return VERR_SSM_DATA_UNIT_FORMAT_CHANGED;
    925925    }
     
    928928    if (pClient->u32ClientID != u32ClientIDOld)
    929929    {
    930         LogRel(("Client ID mismatch: expected %d, got %d\n", u32ClientIDOld, pClient->u32ClientID));
     930        LogFunc(("Client ID mismatch: expected %d, got %d\n", u32ClientIDOld, pClient->u32ClientID));
    931931        pClient->u32ClientID = u32ClientIDOld;
    932932        return VERR_SSM_DATA_UNIT_FORMAT_CHANGED;
     
    951951            case VBOX_CLIPBOARD_EXT_FN_FORMAT_ANNOUNCE:
    952952            {
    953                 LogRelFlow(("ANNOUNCE: g_fReadingData = %d\n", g_fReadingData));
     953                LogFlowFunc(("ANNOUNCE: g_fReadingData = %d\n", g_fReadingData));
    954954                if (g_fReadingData)
    955955                {
     
    978978static DECLCALLBACK(int) svcRegisterExtension(void *, PFNHGCMSVCEXT pfnExtension, void *pvExtension)
    979979{
    980     LogRelFlowFunc(("pfnExtension = %p\n", pfnExtension));
     980    LogFlowFunc(("pfnExtension=%p\n", pfnExtension));
    981981
    982982    VBOXCLIPBOARDEXTPARMS parms;
     
    10111011    int rc = VINF_SUCCESS;
    10121012
    1013     LogRelFlowFunc(("ptable = %p\n", ptable));
     1013    LogFlowFunc(("ptable=%p\n", ptable));
    10141014
    10151015    if (!ptable)
     
    10191019    else
    10201020    {
    1021         LogRel2(("VBoxHGCMSvcLoad: ptable->cbSize = %d, ptable->u32Version = 0x%08X\n", ptable->cbSize, ptable->u32Version));
     1021        LogFunc(("ptable->cbSize = %d, ptable->u32Version = 0x%08X\n", ptable->cbSize, ptable->u32Version));
    10221022
    10231023        if (   ptable->cbSize     != sizeof (VBOXHGCMSVCFNTABLE)
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