Changeset 50 for trunk/kernel/libk/xhtab.c
- Timestamp:
- Jun 26, 2017, 3:15:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/xhtab.c
r23 r50 143 143 xptr_t xlist_xp ) 144 144 { 145 146 printk("\n @@@ xhtab_insert : 0 / name = %s / xhtab_xp = %l / xlist_xp = %l\n",147 key , xhtab_xp , xlist_xp );148 149 145 // get xhtab cluster and local pointer 150 146 cxy_t xhtab_cxy = GET_CXY( xhtab_xp ); … … 154 150 uint32_t index = xhtab_ptr->index( key ); 155 151 156 printk("\n @@@ xhtab_insert : 1 / name = %s / index = %d\n",157 key , index );158 159 152 // take the lock protecting hash table 160 153 remote_rwlock_wr_lock( XPTR( xhtab_cxy , &xhtab_ptr->lock ) ); … … 168 161 remote_rwlock_wr_unlock( XPTR( xhtab_cxy , &xhtab_ptr->lock ) ); 169 162 170 printk("\n @@@ xhtab_insert : 2 / name = %s / item_xp = %l\n",171 key , item_xp );172 173 163 return EINVAL; 174 164 } … … 183 173 // release the lock protecting hash table 184 174 remote_rwlock_wr_unlock( XPTR( xhtab_cxy , &xhtab_ptr->lock ) ); 185 186 printk("\n @@@ xhtab_insert : 3 / name = %s / item_xp = %l\n",187 key , xhtab_ptr->scan( xhtab_xp , index , key ) );188 175 189 176 return 0;
Note: See TracChangeset
for help on using the changeset viewer.