- Timestamp:
- Dec 9, 2010 9:08:01 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/service.cpp
r33892 r34855 88 88 NOREF(pvClient); 89 89 90 Log Rel(("SharedFolders host service: connected, u32ClientID = %d\n", u32ClientID));90 Log(("SharedFolders host service: connected, u32ClientID = %u\n", u32ClientID)); 91 91 92 92 return rc; … … 98 98 SHFLCLIENTDATA *pClient = (SHFLCLIENTDATA *)pvClient; 99 99 100 Log Rel(("SharedFolders host service: disconnected, u32ClientID = %d\n", u32ClientID));100 Log(("SharedFolders host service: disconnected, u32ClientID = %u\n", u32ClientID)); 101 101 102 102 vbsfDisconnect(pClient); … … 114 114 SHFLCLIENTDATA *pClient = (SHFLCLIENTDATA *)pvClient; 115 115 116 Log Rel(("SharedFolders host service: saving state, u32ClientID = %d\n", u32ClientID));116 Log(("SharedFolders host service: saving state, u32ClientID = %u\n", u32ClientID)); 117 117 118 118 int rc = SSMR3PutU32(pSSM, SHFL_SSM_VERSION); … … 176 176 uint32_t len, version; 177 177 178 Log Rel(("SharedFolders host service: loading state, u32ClientID = %d\n", u32ClientID));178 Log(("SharedFolders host service: loading state, u32ClientID = %u\n", u32ClientID)); 179 179 180 180 int rc = SSMR3GetU32(pSSM, &version); … … 259 259 } 260 260 } 261 Log Rel(("SharedFolders host service: success\n"));261 Log(("SharedFolders host service: successfully loaded state\n")); 262 262 return VINF_SUCCESS; 263 263 } … … 267 267 int rc = VINF_SUCCESS; 268 268 269 Log((" svcCall: u32ClientID = %d, fn = %d, cParms = %d, pparms = %d\n", u32ClientID, u32Function, cParms, paParms));269 Log(("SharedFolders host service: svcCall: u32ClientID = %u, fn = %u, cParms = %u, pparms = %p\n", u32ClientID, u32Function, cParms, paParms)); 270 270 271 271 SHFLCLIENTDATA *pClient = (SHFLCLIENTDATA *)pvClient; … … 279 279 { 280 280 /** @todo parameters other than 32 bit */ 281 Log((" pparms[%d]: type % d value %d\n", i, paParms[i].type, paParms[i].u.uint32));281 Log((" pparms[%d]: type %u, value %u\n", i, paParms[i].type, paParms[i].u.uint32)); 282 282 } 283 283 #endif … … 287 287 case SHFL_FN_QUERY_MAPPINGS: 288 288 { 289 Log((" svcCall: SHFL_FN_QUERY_MAPPINGS\n"));289 Log(("SharedFolders host service: svcCall: SHFL_FN_QUERY_MAPPINGS\n")); 290 290 291 291 /* Verify parameter count and types. */ … … 343 343 case SHFL_FN_QUERY_MAP_NAME: 344 344 { 345 Log((" svcCall: SHFL_FN_QUERY_MAP_NAME\n"));345 Log(("SharedFolders host service: svcCall: SHFL_FN_QUERY_MAP_NAME\n")); 346 346 347 347 /* Verify parameter count and types. */ … … 384 384 case SHFL_FN_CREATE: 385 385 { 386 Log((" svcCall: SHFL_FN_CREATE\n"));386 Log(("SharedFolders host service: svcCall: SHFL_FN_CREATE\n")); 387 387 388 388 /* Verify parameter count and types. */ … … 396 396 ) 397 397 { 398 Log((" Invalid parameters types\n"));398 Log(("SharedFolders host service: Invalid parameters types\n")); 399 399 rc = VERR_INVALID_PARAMETER; 400 400 } … … 435 435 case SHFL_FN_CLOSE: 436 436 { 437 Log((" svcCall: SHFL_FN_CLOSE\n"));437 Log(("SharedFolders host service: svcCall: SHFL_FN_CLOSE\n")); 438 438 439 439 /* Verify parameter count and types. */ … … 462 462 if (Handle == SHFL_HANDLE_NIL) 463 463 { 464 AssertMsgFailed(("Invalid handle! !!!\n"));464 AssertMsgFailed(("Invalid handle!\n")); 465 465 rc = VERR_INVALID_HANDLE; 466 466 } … … 484 484 /** Read object content. */ 485 485 case SHFL_FN_READ: 486 Log((" svcCall: SHFL_FN_READ\n"));486 Log(("SharedFolders host service: svcCall: SHFL_FN_READ\n")); 487 487 488 488 /* Verify parameter count and types. */ … … 520 520 if (Handle == SHFL_HANDLE_NIL) 521 521 { 522 AssertMsgFailed(("Invalid handle! !!!\n"));522 AssertMsgFailed(("Invalid handle!\n")); 523 523 rc = VERR_INVALID_HANDLE; 524 524 } … … 551 551 /** Write new object content. */ 552 552 case SHFL_FN_WRITE: 553 Log((" svcCall: SHFL_FN_WRITE\n"));553 Log(("SharedFolders host service: svcCall: SHFL_FN_WRITE\n")); 554 554 555 555 /* Verify parameter count and types. */ … … 587 587 if (Handle == SHFL_HANDLE_NIL) 588 588 { 589 AssertMsgFailed(("Invalid handle! !!!\n"));589 AssertMsgFailed(("Invalid handle!\n")); 590 590 rc = VERR_INVALID_HANDLE; 591 591 } … … 618 618 /** Lock/unlock a range in the object. */ 619 619 case SHFL_FN_LOCK: 620 Log((" svcCall: SHFL_FN_LOCK\n"));620 Log(("SharedFolders host service: svcCall: SHFL_FN_LOCK\n")); 621 621 622 622 /* Verify parameter count and types. */ … … 652 652 if (Handle == SHFL_HANDLE_NIL) 653 653 { 654 AssertMsgFailed(("Invalid handle! !!!\n"));654 AssertMsgFailed(("Invalid handle!\n")); 655 655 rc = VERR_INVALID_HANDLE; 656 656 } … … 705 705 case SHFL_FN_LIST: 706 706 { 707 Log((" svcCall: SHFL_FN_LIST\n"));707 Log(("SharedFolders host service: svcCall: SHFL_FN_LIST\n")); 708 708 709 709 /* Verify parameter count and types. */ … … 783 783 case SHFL_FN_READLINK: 784 784 { 785 Log((" svcCall: SHFL_FN_READLINK\n"));785 Log(("SharedFolders host service: svcCall: SHFL_FN_READLINK\n")); 786 786 787 787 /* Verify parameter count and types. */ … … 831 831 case SHFL_FN_MAP_FOLDER_OLD: 832 832 { 833 Log((" svcCall: SHFL_FN_MAP_FOLDER_OLD\n"));833 Log(("SharedFolders host service: svcCall: SHFL_FN_MAP_FOLDER_OLD\n")); 834 834 835 835 /* Verify parameter count and types. */ … … 874 874 case SHFL_FN_MAP_FOLDER: 875 875 { 876 Log((" svcCall: SHFL_FN_MAP_FOLDER\n"));876 Log(("SharedFolders host service: svcCall: SHFL_FN_MAP_FOLDER\n")); 877 877 if (BIT_FLAG(pClient->fu32Flags, SHFL_CF_UTF8)) 878 Log Rel(("SharedFolders host service: request to map folder '%S'\n",879 880 else 881 Log Rel(("SharedFolders host service: request to map folder '%lS'\n",882 878 Log(("SharedFolders host service: request to map folder '%S'\n", 879 ((PSHFLSTRING)paParms[0].u.pointer.addr)->String.utf8)); 880 else 881 Log(("SharedFolders host service: request to map folder '%lS'\n", 882 ((PSHFLSTRING)paParms[0].u.pointer.addr)->String.ucs2)); 883 883 884 884 /* Verify parameter count and types. */ … … 921 921 } 922 922 } 923 Log Rel(("SharedFolders host service: map operation result %Rrc.\n", rc));923 Log(("SharedFolders host service: map operation result %Rrc\n", rc)); 924 924 if (RT_SUCCESS(rc)) 925 Log Rel((" Mapped to handle %d.\n", paParms[1].u.uint32));925 Log(("SharedFolders host service: mapped to handle %d\n", paParms[1].u.uint32)); 926 926 break; 927 927 } … … 929 929 case SHFL_FN_UNMAP_FOLDER: 930 930 { 931 Log((" svcCall: SHFL_FN_UNMAP_FOLDER\n"));932 Log Rel(("SharedFolders host service: request to unmap folder handle %d\n",933 931 Log(("SharedFolders host service: svcCall: SHFL_FN_UNMAP_FOLDER\n")); 932 Log(("SharedFolders host service: request to unmap folder handle %u\n", 933 paParms[0].u.uint32)); 934 934 935 935 /* Verify parameter count and types. */ … … 957 957 } 958 958 } 959 Log Rel(("SharedFolders host service: unmap operation result %Rrc.\n", rc));959 Log(("SharedFolders host service: unmap operation result %Rrc\n", rc)); 960 960 break; 961 961 } … … 964 964 case SHFL_FN_INFORMATION: 965 965 { 966 Log((" svcCall: SHFL_FN_INFORMATION\n"));966 Log(("SharedFolders host service: svcCall: SHFL_FN_INFORMATION\n")); 967 967 968 968 /* Verify parameter count and types. */ … … 1020 1020 case SHFL_FN_REMOVE: 1021 1021 { 1022 Log((" svcCall: SHFL_FN_REMOVE\n"));1022 Log(("SharedFolders host service: svcCall: SHFL_FN_REMOVE\n")); 1023 1023 1024 1024 /* Verify parameter count and types. */ … … 1063 1063 case SHFL_FN_RENAME: 1064 1064 { 1065 Log((" svcCall: SHFL_FN_RENAME\n"));1065 Log(("SharedFolders host service: svcCall: SHFL_FN_RENAME\n")); 1066 1066 1067 1067 /* Verify parameter count and types. */ … … 1109 1109 case SHFL_FN_FLUSH: 1110 1110 { 1111 Log((" svcCall: SHFL_FN_FLUSH\n"));1111 Log(("SharedFolders host service: svcCall: SHFL_FN_FLUSH\n")); 1112 1112 1113 1113 /* Verify parameter count and types. */ … … 1137 1137 if (Handle == SHFL_HANDLE_NIL) 1138 1138 { 1139 AssertMsgFailed(("Invalid handle! !!!\n"));1139 AssertMsgFailed(("Invalid handle!\n")); 1140 1140 rc = VERR_INVALID_HANDLE; 1141 1141 } … … 1163 1163 case SHFL_FN_SYMLINK: 1164 1164 { 1165 Log((" svnCall: SHFL_FN_SYMLINK\n"));1165 Log(("SharedFolders host service: svnCall: SHFL_FN_SYMLINK\n")); 1166 1166 /* Verify parameter count and types. */ 1167 1167 if (cParms != SHFL_CPARMS_SYMLINK) … … 1223 1223 } 1224 1224 1225 LogFlow((" svcCall: rc =%Rrc\n", rc));1225 LogFlow(("SharedFolders host service: svcCall: rc=%Rrc\n", rc)); 1226 1226 1227 1227 if ( !fAsynchronousProcessing … … 1260 1260 case SHFL_FN_ADD_MAPPING: 1261 1261 { 1262 Log((" svcCall: SHFL_FN_ADD_MAPPING\n"));1263 LogRel(("SharedFolders host service: adding host mapping .\n"));1262 Log(("SharedFolders host service: svcCall: SHFL_FN_ADD_MAPPING\n")); 1263 LogRel(("SharedFolders host service: adding host mapping\n")); 1264 1264 LogRel((" Host path '%lS', map name '%lS', %s\n", 1265 1265 ((SHFLSTRING *)paParms[0].u.pointer.addr)->String.ucs2, … … 1313 1313 } 1314 1314 } 1315 LogRel(("SharedFolders host service: add mapping result %Rrc\n", rc)); 1315 if (RT_FAILURE(rc)) 1316 LogRel(("SharedFolders host service: adding host mapping failed with rc=%Rrc\n", rc)); 1316 1317 break; 1317 1318 } … … 1319 1320 case SHFL_FN_REMOVE_MAPPING: 1320 1321 { 1321 Log((" svcCall: SHFL_FN_REMOVE_MAPPING\n"));1322 Log(("SharedFolders host service: svcCall: SHFL_FN_REMOVE_MAPPING\n")); 1322 1323 LogRel(("SharedFolders host service: removing host mapping '%lS'\n", 1323 1324 ((SHFLSTRING *)paParms[0].u.pointer.addr)->String.ucs2)); … … 1355 1356 } 1356 1357 } 1357 LogRel(("SharedFolders host service: remove mapping result %Rrc\n", rc)); 1358 if (RT_FAILURE(rc)) 1359 LogRel(("SharedFolders host service: removing host mapping failed with rc=%Rrc\n", rc)); 1358 1360 break; 1359 1361 } … … 1361 1363 case SHFL_FN_SET_STATUS_LED: 1362 1364 { 1363 Log((" svcCall: SHFL_FN_SET_STATUS_LED\n"));1365 Log(("SharedFolders host service: svcCall: SHFL_FN_SET_STATUS_LED\n")); 1364 1366 1365 1367 /* Verify parameter count and types. */ … … 1400 1402 } 1401 1403 1402 LogFlow((" svcHostCall: rc =%Rrc\n", rc));1404 LogFlow(("SharedFolders host service: svcHostCall ended with rc=%Rrc\n", rc)); 1403 1405 return rc; 1404 1406 } … … 1408 1410 int rc = VINF_SUCCESS; 1409 1411 1410 Log((" VBoxHGCMSvcLoad: ptable = %p\n", ptable));1412 Log(("SharedFolders host service: VBoxHGCMSvcLoad: ptable = %p\n", ptable)); 1411 1413 1412 1414 if (!VALID_PTR(ptable)) 1413 1415 { 1414 LogRelFunc((" Bad value of ptable (%p) in shared folders service\n", ptable));1416 LogRelFunc(("SharedFolders host service: bad value of ptable (%p)\n", ptable)); 1415 1417 rc = VERR_INVALID_PARAMETER; 1416 1418 } 1417 1419 else 1418 1420 { 1419 Log(("VBoxHGCMSvcLoad: ptable->cbSize = %d, ptable->u32Version = 0x%08X\n", ptable->cbSize, ptable->u32Version)); 1421 Log(("SharedFolders host service: VBoxHGCMSvcLoad: ptable->cbSize = %u, ptable->u32Version = 0x%08X\n", 1422 ptable->cbSize, ptable->u32Version)); 1420 1423 1421 1424 if ( ptable->cbSize != sizeof (VBOXHGCMSVCFNTABLE) 1422 1425 || ptable->u32Version != VBOX_HGCM_SVC_VERSION) 1423 1426 { 1424 LogRelFunc(("version mismatch loading shared folders service: ptable->cbSize = %d, should be %d, ptable->u32Version = 0x%08X, should be 0x%08X\n", ptable->cbSize, sizeof (VBOXHGCMSVCFNTABLE), ptable->u32Version, VBOX_HGCM_SVC_VERSION)); 1427 LogRelFunc(("SharedFolders host service: version mismatch while loading: ptable->cbSize = %u (should be %u), ptable->u32Version = 0x%08X (should be 0x%08X)\n", 1428 ptable->cbSize, sizeof (VBOXHGCMSVCFNTABLE), ptable->u32Version, VBOX_HGCM_SVC_VERSION)); 1425 1429 rc = VERR_VERSION_MISMATCH; 1426 1430 } … … 1450 1454 return rc; 1451 1455 } 1456
Note:
See TracChangeset
for help on using the changeset viewer.