VirtualBox

Changeset 10529 in vbox for trunk/src


Ignore:
Timestamp:
Jul 11, 2008 2:31:50 PM (17 years ago)
Author:
vboxsync
Message:

HostServices/SharedFolders: added release logging to the shared folders service to help with debugging user issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/service.cpp

    r9816 r10529  
    9292    NOREF(pvClient);
    9393
    94     Log(("svcConnect: u32ClientID = %d\n", u32ClientID));
     94    LogRel(("SharedFolders host service: connected, u32ClientID = %d\n", u32ClientID));
    9595
    9696    return rc;
     
    102102    SHFLCLIENTDATA *pClient = (SHFLCLIENTDATA *)pvClient;
    103103
    104     Log(("svcDisconnect: u32ClientID = %d\n", u32ClientID));
     104    LogRel(("SharedFolders host service: disconnected, u32ClientID = %d\n", u32ClientID));
    105105
    106106    vbsfDisconnect(pClient);
     
    118118    SHFLCLIENTDATA *pClient = (SHFLCLIENTDATA *)pvClient;
    119119
    120     Log(("svcSaveState: u32ClientID = %d\n", u32ClientID));
     120    LogRel(("SharedFolders host service: saving state, u32ClientID = %d\n", u32ClientID));
    121121
    122122    int rc = SSMR3PutU32(pSSM, SHFL_SSM_VERSION);
     
    177177    uint32_t        len, version;
    178178
    179     Log(("svcLoadState: u32ClientID = %d\n", u32ClientID));
     179    LogRel(("SharedFolders host service: loading state, u32ClientID = %d\n", u32ClientID));
    180180
    181181    int rc = SSMR3GetU32(pSSM, &version);
     
    274274        }
    275275    }
     276    LogRel(("SharedFolders host service: success\n"));
    276277    return VINF_SUCCESS;
    277278}
     
    812813        {
    813814            Log(("svcCall: SHFL_FN_MAP_FOLDER\n"));
     815            if (BIT_FLAG(pClient->fu32Flags, SHFL_CF_UTF8))
     816                LogRel(("SharedFolders host service: request to map folder %S\n",
     817                        ((PSHFLSTRING)paParms[0].u.pointer.addr)->String.utf8));
     818            else
     819                LogRel(("SharedFolders host service: request to map folder %lS\n",
     820                        ((PSHFLSTRING)paParms[0].u.pointer.addr)->String.ucs2));
    814821
    815822            /* Verify parameter count and types. */
     
    843850                }
    844851            }
     852            LogRel(("SharedFolders host service: map operation result %Rrc.\n", rc));
     853            if (RT_SUCCESS(rc))
     854                LogRel(("    Mapped to handle %d.\n", paParms[1].u.uint32));
    845855            break;
    846856        }
     
    849859        {
    850860            Log(("svcCall: SHFL_FN_UNMAP_FOLDER\n"));
     861            LogRel(("SharedFolders host service: request to unmap folder handle %d\n",
     862                    paParms[0].u.uint32));
    851863
    852864            /* Verify parameter count and types. */
     
    874886                }
    875887            }
     888            LogRel(("SharedFolders host service: unmap operation result %Rrc.\n", rc));
    876889            break;
    877890        }
     
    11181131    {
    11191132        Log(("svcCall: SHFL_FN_ADD_MAPPING\n"));
     1133        LogRel(("SharedFolders host service: adding host mapping.\n"));
     1134        LogRel(("    Host path %lS, map name %lS, writable %d\n",
     1135                ((SHFLSTRING *)paParms[0].u.pointer.addr)->String.ucs2,
     1136                ((SHFLSTRING *)paParms[1].u.pointer.addr)->String.ucs2,
     1137                paParms[2].u.uint32));
    11201138
    11211139        /* Verify parameter count and types. */
     
    11611179            }
    11621180        }
     1181        LogRel(("SharedFolders host service: add mapping result %Rrc\n", rc));
    11631182        break;
    11641183    }
     
    11671186    {
    11681187        Log(("svcCall: SHFL_FN_REMOVE_MAPPING\n"));
     1188        LogRel(("SharedFolders host service: removing host mapping %lS\n",
     1189                ((SHFLSTRING *)paParms[0].u.pointer.addr)->String.ucs2));
    11691190
    11701191        /* Verify parameter count and types. */
     
    12031224            }
    12041225        }
     1226        LogRel(("SharedFolders host service: remove mapping result %Rrc\n", rc));
    12051227        break;
    12061228    }
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