Changeset 78439 in vbox for trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp
- Timestamp:
- May 7, 2019 5:41:25 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp
r78346 r78439 202 202 if (pClient->fMsgQuit) 203 203 { 204 Log RelFlow(("vboxSvcClipboardReturnMsg: Quit\n"));204 LogFlowFunc(("vboxSvcClipboardReturnMsg: Quit\n")); 205 205 VBoxHGCMParmUInt32Set(&paParms[0], VBOX_SHARED_CLIPBOARD_HOST_MSG_QUIT); 206 206 VBoxHGCMParmUInt32Set(&paParms[1], 0); … … 211 211 uint32_t fFormat = 0; 212 212 213 Log RelFlow(("vboxSvcClipboardReturnMsg: ReadData %02X\n", pClient->u32RequestedFormat));213 LogFlowFunc(("vboxSvcClipboardReturnMsg: ReadData %02X\n", pClient->u32RequestedFormat)); 214 214 if (pClient->u32RequestedFormat & VBOX_SHARED_CLIPBOARD_FMT_UNICODETEXT) 215 215 fFormat = VBOX_SHARED_CLIPBOARD_FMT_UNICODETEXT; … … 228 228 else if (pClient->fMsgFormats) 229 229 { 230 Log RelFlow(("vboxSvcClipboardReturnMsg: Formats %02X\n", pClient->u32AvailableFormats));230 LogFlowFunc(("vboxSvcClipboardReturnMsg: Formats %02X\n", pClient->u32AvailableFormats)); 231 231 VBoxHGCMParmUInt32Set(&paParms[0], VBOX_SHARED_CLIPBOARD_HOST_MSG_REPORT_FORMATS); 232 232 VBoxHGCMParmUInt32Set(&paParms[1], pClient->u32AvailableFormats); … … 236 236 { 237 237 /* No pending messages. */ 238 Log RelFlow(("vboxSvcClipboardReturnMsg: no message\n"));238 LogFlowFunc(("vboxSvcClipboardReturnMsg: no message\n")); 239 239 return false; 240 240 } … … 254 254 case VBOX_SHARED_CLIPBOARD_HOST_MSG_QUIT: 255 255 { 256 Log RelFlow(("vboxSvcClipboardReportMsg:Quit\n"));256 LogFlowFunc(("Quit\n")); 257 257 pClient->fMsgQuit = true; 258 258 } break; … … 266 266 } 267 267 268 Log RelFlow(("vboxSvcClipboardReportMsg:ReadData %02X\n", u32Formats));268 LogFlowFunc(("ReadData %02X\n", u32Formats)); 269 269 pClient->u32RequestedFormat = u32Formats; 270 270 pClient->fMsgReadData = true; … … 279 279 } 280 280 281 Log RelFlow(("vboxSvcClipboardReportMsg:Formats %02X\n", u32Formats));281 LogFlowFunc(("Formats %02X\n", u32Formats)); 282 282 pClient->u32AvailableFormats = u32Formats; 283 283 pClient->fMsgFormats = true; … … 286 286 { 287 287 /* Invalid message. */ 288 Log RelFlow(("vboxSvcClipboardReportMsg:invalid message %d\n", u32Msg));288 LogFlowFunc(("invalid message %d\n", u32Msg)); 289 289 } break; 290 290 } … … 308 308 if (fMessageReturned) 309 309 { 310 Log RelFlow(("vboxSvcClipboardReportMsg:CallComplete\n"));310 LogFlowFunc(("CallComplete\n")); 311 311 g_pHelpers->pfnCallComplete(callHandle, VINF_SUCCESS); 312 312 } … … 356 356 VBOXCLIPBOARDCLIENTDATA *pClient = (VBOXCLIPBOARDCLIENTDATA *)pvClient; 357 357 358 Log Rel2(("svcDisconnect:u32ClientID = %d\n", u32ClientID));358 LogFunc(("u32ClientID = %d\n", u32ClientID)); 359 359 360 360 vboxSvcClipboardReportMsg(pClient, VBOX_SHARED_CLIPBOARD_HOST_MSG_QUIT, 0); … … 400 400 } 401 401 402 LogRel2(("vboxClipboardConnect: rc = %Rrc\n", rc)); 403 402 LogFlowFuncLeaveRC(rc); 404 403 return rc; 405 404 } … … 417 416 int rc = VINF_SUCCESS; 418 417 419 Log Rel2(("svcCall:u32ClientID = %d, fn = %d, cParms = %d, pparms = %d\n",418 LogFunc(("u32ClientID = %d, fn = %d, cParms = %d, pparms = %d\n", 420 419 u32ClientID, u32Function, cParms, paParms)); 421 420 … … 430 429 { 431 430 /** @todo parameters other than 32 bit */ 432 Log Rel2((" 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)); 433 432 } 434 433 #endif … … 439 438 { 440 439 /* The quest requests a host message. */ 441 Log Rel2(("svcCall:VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG\n"));440 LogFunc(("VBOX_SHARED_CLIPBOARD_FN_GET_HOST_MSG\n")); 442 441 443 442 if (cParms != VBOX_SHARED_CLIPBOARD_CPARMS_GET_HOST_MSG) … … 472 471 pClient->async.paParms = paParms; 473 472 474 Log Rel2(("svcCall:async.\n"));473 LogFunc(("async.\n")); 475 474 } 476 475 … … 487 486 { 488 487 /* The guest reports that some formats are available. */ 489 Log Rel2(("svcCall:VBOX_SHARED_CLIPBOARD_FN_FORMATS\n"));488 LogFunc(("VBOX_SHARED_CLIPBOARD_FN_FORMATS\n")); 490 489 491 490 if (cParms != VBOX_SHARED_CLIPBOARD_CPARMS_FORMATS) … … 532 531 { 533 532 /* The guest wants to read data in the given format. */ 534 Log Rel2(("svcCall:VBOX_SHARED_CLIPBOARD_FN_READ_DATA\n"));533 LogFunc(("VBOX_SHARED_CLIPBOARD_FN_READ_DATA\n")); 535 534 536 535 if (cParms != VBOX_SHARED_CLIPBOARD_CPARMS_READ_DATA) … … 578 577 g_fReadingData = true; 579 578 rc = g_pfnExtension (g_pvExtension, VBOX_CLIPBOARD_EXT_FN_DATA_READ, &parms, sizeof (parms)); 580 Log RelFlow(("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)); 581 580 if (g_fDelayedAnnouncement) 582 581 { … … 628 627 { 629 628 /* The guest writes the requested data. */ 630 Log Rel2(("svcCall:VBOX_SHARED_CLIPBOARD_FN_WRITE_DATA\n"));629 LogFunc(("VBOX_SHARED_CLIPBOARD_FN_WRITE_DATA\n")); 631 630 632 631 if (cParms != VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA) … … 686 685 } 687 686 688 Log RelFlow(("svcCall:rc = %Rrc\n", rc));687 LogFlowFunc(("rc = %Rrc\n", rc)); 689 688 690 689 if (!fAsynchronousProcessing) … … 727 726 int rc = VINF_SUCCESS; 728 727 729 Log Rel2(("svcHostCall: fn = %d, cParms = %d, pparms = %d\n",728 LogFunc(("svcHostCall: fn = %d, cParms = %d, pparms = %d\n", 730 729 u32Function, cParms, paParms)); 731 730 … … 734 733 case VBOX_SHARED_CLIPBOARD_HOST_FN_SET_MODE: 735 734 { 736 Log Rel2(("svcCall:VBOX_SHARED_CLIPBOARD_HOST_FN_SET_MODE\n"));735 LogFunc(("VBOX_SHARED_CLIPBOARD_HOST_FN_SET_MODE\n")); 737 736 738 737 if (cParms != 1) … … 765 764 rc = VBoxHGCMParmUInt32Get (&paParms[0], &u32Headless); 766 765 if (RT_SUCCESS(rc)) 767 Log RelFlow(("svcCall:VBOX_SHARED_CLIPBOARD_HOST_FN_SET_HEADLESS, u32Headless=%u\n",766 LogFlowFunc(("VBOX_SHARED_CLIPBOARD_HOST_FN_SET_HEADLESS, u32Headless=%u\n", 768 767 (unsigned) u32Headless)); 769 768 g_fHeadless = RT_BOOL(u32Headless); … … 774 773 } 775 774 776 Log RelFlow(("svcHostCall: rc = %Rrc\n", rc));775 LogFlowFunc(("svcHostCall: rc = %Rrc\n", rc)); 777 776 return rc; 778 777 } … … 802 801 * Pending requests, if any, will be completed in svcDisconnect. 803 802 */ 804 Log Rel2(("svcSaveState:u32ClientID = %d\n", u32ClientID));803 LogFunc(("u32ClientID = %d\n", u32ClientID)); 805 804 806 805 VBOXCLIPBOARDCLIENTDATA *pClient = (VBOXCLIPBOARDCLIENTDATA *)pvClient; … … 866 865 #ifndef UNIT_TEST 867 866 RT_NOREF(uVersion); 868 LogRel2(("svcLoadState: u32ClientID = %d\n", u32ClientID)); 867 868 LogFunc(("u32ClientID = %d\n", u32ClientID)); 869 869 870 870 VBOXCLIPBOARDCLIENTDATA *pClient = (VBOXCLIPBOARDCLIENTDATA *)pvClient; … … 921 921 else 922 922 { 923 Log Rel(("Client data size mismatch: got %#x\n", lenOrVer));923 LogFunc(("Client data size mismatch: got %#x\n", lenOrVer)); 924 924 return VERR_SSM_DATA_UNIT_FORMAT_CHANGED; 925 925 } … … 928 928 if (pClient->u32ClientID != u32ClientIDOld) 929 929 { 930 Log Rel(("Client ID mismatch: expected %d, got %d\n", u32ClientIDOld, pClient->u32ClientID));930 LogFunc(("Client ID mismatch: expected %d, got %d\n", u32ClientIDOld, pClient->u32ClientID)); 931 931 pClient->u32ClientID = u32ClientIDOld; 932 932 return VERR_SSM_DATA_UNIT_FORMAT_CHANGED; … … 951 951 case VBOX_CLIPBOARD_EXT_FN_FORMAT_ANNOUNCE: 952 952 { 953 Log RelFlow(("ANNOUNCE: g_fReadingData = %d\n", g_fReadingData));953 LogFlowFunc(("ANNOUNCE: g_fReadingData = %d\n", g_fReadingData)); 954 954 if (g_fReadingData) 955 955 { … … 978 978 static DECLCALLBACK(int) svcRegisterExtension(void *, PFNHGCMSVCEXT pfnExtension, void *pvExtension) 979 979 { 980 Log RelFlowFunc(("pfnExtension =%p\n", pfnExtension));980 LogFlowFunc(("pfnExtension=%p\n", pfnExtension)); 981 981 982 982 VBOXCLIPBOARDEXTPARMS parms; … … 1011 1011 int rc = VINF_SUCCESS; 1012 1012 1013 Log RelFlowFunc(("ptable =%p\n", ptable));1013 LogFlowFunc(("ptable=%p\n", ptable)); 1014 1014 1015 1015 if (!ptable) … … 1019 1019 else 1020 1020 { 1021 Log Rel2(("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)); 1022 1022 1023 1023 if ( ptable->cbSize != sizeof (VBOXHGCMSVCFNTABLE)
Note:
See TracChangeset
for help on using the changeset viewer.