os/fs/mqueue/mq_close : Add log for mq_close fail case
If a thread which tries to close the mq, but the mq descriptor is not in its task_group, mq_close will fail.
#include <sched.h>
#include <mqueue.h>
#include <assert.h>
+#include <debug.h>
#include <tinyara/kmalloc.h>
#include <tinyara/sched.h>
@@ -134,6 +135,7 @@ int mq_close_group(mqd_t mqdes, FAR struct task_group_s *group)
mq_inode_release(inode);
} else {
+ dbg("ERROR: mqdes(%x) is not in this thread's group.\n", mqdes);
ret = ERROR;
}
sched_unlock();
