- Timestamp:
- Oct 16, 2008 7:17:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/x11.cpp
r13219 r13315 201 201 if (RT_FAILURE(ASMAtomicCmpXchgU32(&pCtx->waiter, 1, 0))) 202 202 { 203 LogRel(("vboxClipboardReadDataFromClient: deadlock situation - the host and the guest are both waiting for data from the other. "));203 LogRel(("vboxClipboardReadDataFromClient: deadlock situation - the host and the guest are both waiting for data from the other.\n")); 204 204 return VERR_DEADLOCK; 205 205 } … … 209 209 if (RTSemEventWait(pCtx->waitForData, CLIPBOARDTIMEOUT) != VINF_SUCCESS) 210 210 { 211 LogRel 211 LogRel(("vboxClipboardReadDataFromClient: vboxSvcClipboardReportMsg failed to complete within %d milliseconds\n", CLIPBOARDTIMEOUT)); 212 212 pCtx->guestFormats = 0; 213 213 pCtx->waiter = 0; … … 695 695 static int vboxClipboardThread(RTTHREAD self, void * /* pvUser */) 696 696 { 697 LogRel 697 LogRel(("Shared clipboard: starting host clipboard thread\n")); 698 698 699 699 /* Set up a timer to poll the host clipboard */ … … 704 704 RTSemEventDestroy(g_ctx.waitForData); 705 705 RTSemMutexDestroy(g_ctx.asyncMutex); 706 LogRel 706 LogRel(("Shared clipboard: host clipboard thread terminated successfully\n")); 707 707 return VINF_SUCCESS; 708 708 } … … 710 710 int vboxClipboardInitX11 (void) 711 711 { 712 713 712 /* Create a window and make it a clipboard viewer. */ 714 713 int cArgc = 0; … … 812 811 rc = RTThreadCreate(&g_ctx.thread, vboxClipboardThread, 0, 0, 813 812 RTTHREADTYPE_IO, RTTHREADFLAGS_WAITABLE, "SHCLIP"); 814 if ( !RT_SUCCESS(rc))815 LogRel(("Failed to start the host shared clipboard thread. "));816 } 817 if ( !RT_SUCCESS(rc))813 if (RT_FAILURE(rc)) 814 LogRel(("Failed to start the host shared clipboard thread.\n")); 815 } 816 if (RT_FAILURE(rc)) 818 817 { 819 818 RTSemEventDestroy(g_ctx.waitForData); … … 1047 1046 if (pu16DestText == 0) 1048 1047 { 1049 LogRel 1048 LogRel(("vboxClipboardConvertUtf16: failed to allocate %d bytes\n", cwDestLen * 2)); 1050 1049 vboxClipboardEmptyGuestBuffer(); 1051 1050 return false; … … 1118 1117 if (pu16DestText == 0) 1119 1118 { 1120 LogRel 1119 LogRel(("vboxClipboardConvertUtf8: failed to allocate %d bytes\n", cwDestLen * 2)); 1121 1120 vboxClipboardEmptyGuestBuffer(); 1122 1121 return false; … … 1136 1135 if (pu8DestText == 0) 1137 1136 { 1138 LogRel 1137 LogRel(("vboxClipboardConvertUtf8: failed to allocate %d bytes\n", cwDestLen * 4)); 1139 1138 RTMemFree(reinterpret_cast<void *>(pu16DestText)); 1140 1139 vboxClipboardEmptyGuestBuffer(); … … 1211 1210 if (pu16DestText == 0) 1212 1211 { 1213 LogRel 1212 LogRel(("vboxClipboardConvertCText: failed to allocate %d bytes\n", cwDestLen * 2)); 1214 1213 vboxClipboardEmptyGuestBuffer(); 1215 1214 return false; … … 1458 1457 if (RTSemEventWait(g_ctx.waitForData, CLIPBOARDTIMEOUT) != VINF_SUCCESS) 1459 1458 { 1460 LogRel 1459 LogRel(("vboxClipboardReadDataFromClient: XtGetSelectionValue failed to complete within %d milliseconds\n", CLIPBOARDTIMEOUT)); 1461 1460 g_ctx.hostTextFormat = INVALID; 1462 1461 g_ctx.hostBitmapFormat = INVALID;
Note:
See TracChangeset
for help on using the changeset viewer.