From 9a7bfe0ec19755edfe61a6c39df21ef4624713f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 28 Jun 2003 04:23:24 +0000 Subject: [PATCH] Added minor debug output. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3707 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/fs/fd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kernel/core/fs/fd.c b/src/kernel/core/fs/fd.c index d91a800e01..fea4adcbce 100644 --- a/src/kernel/core/fs/fd.c +++ b/src/kernel/core/fs/fd.c @@ -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)