Changeset 7166 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Feb 27, 2008 11:02:14 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28461
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/module/vboxmod.c
r6982 r7166 104 104 if (ASMAtomicCmpXchgU32(&hgcm_connections[i].client_id, client_id, 0)) { 105 105 hgcm_connections[i].filp = filp; 106 #ifdef DEBUG107 LogRelFunc(("Registered client ID %d, file pointer %p at position %d in the table.\n",108 client_id, filp, i));109 #endif110 106 found = true; 111 107 } … … 128 124 for (i = 0; (i < MAX_HGCM_CONNECTIONS) && (false == found); ++i) { 129 125 if (hgcm_connections[i].client_id == client_id) { 130 #ifdef DEBUG131 LogRelFunc(("Unregistered client ID %d, file pointer %p at position %d in the table.\n",132 client_id, hgcm_connections[i].filp, i));133 #endif134 126 hgcm_connections[i].filp = NULL; 135 127 hgcm_connections[i].client_id = 0; … … 158 150 if (hgcm_connections[i].filp == filp) { 159 151 VBoxGuestHGCMDisconnectInfo infoDisconnect; 160 #ifdef DEBUG161 LogRelFunc(("Unregistered client ID %d, file pointer %p at position %d in the table.\n",162 hgcm_connections[i].client_id, filp, i));163 #endif164 152 infoDisconnect.u32ClientID = hgcm_connections[i].client_id; 165 153 vboxadd_cmc_call(vboxDev, IOCTL_VBOXGUEST_HGCM_DISCONNECT, … … 189 177 static int vboxadd_release(struct inode *inode, struct file * filp) 190 178 { 191 #ifdef DEBUG192 LogRelFunc(("Cleaning up HGCM connections for file pointer %p\n", filp));193 #endif194 179 vboxadd_unregister_all_hgcm_connections(filp); 195 180 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.