Added minor debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3707 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8a32e4dc84
commit
9a7bfe0ec1
@ -102,9 +102,11 @@ err:
|
|||||||
void
|
void
|
||||||
put_fd(struct file_descriptor *descriptor)
|
put_fd(struct file_descriptor *descriptor)
|
||||||
{
|
{
|
||||||
|
TRACE(("put_fd(descriptor = %p [ref = %ld, cookie = %p])\n", descriptor, descriptor->ref_count, descriptor->cookie));
|
||||||
|
|
||||||
// free the descriptor if we don't need it anymore
|
// free the descriptor if we don't need it anymore
|
||||||
if (atomic_add(&descriptor->ref_count, -1) == 1) {
|
if (atomic_add(&descriptor->ref_count, -1) == 1) {
|
||||||
// close the underlying object (and free any resources allocated there)=
|
// close the underlying object (and free any resources allocated there)
|
||||||
if (descriptor->ops->fd_close)
|
if (descriptor->ops->fd_close)
|
||||||
descriptor->ops->fd_close(descriptor);
|
descriptor->ops->fd_close(descriptor);
|
||||||
if (descriptor->ops->fd_free)
|
if (descriptor->ops->fd_free)
|
||||||
|
Loading…
Reference in New Issue
Block a user