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:
Axel Dörfler 2003-06-28 04:23:24 +00:00
parent 8a32e4dc84
commit 9a7bfe0ec1

View File

@ -102,9 +102,11 @@ err:
void
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
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)
descriptor->ops->fd_close(descriptor);
if (descriptor->ops->fd_free)