files: Print file type for BUG

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2015-05-29 13:57:18 +03:00
parent d9fb201175
commit 827a86287c

View file

@ -131,7 +131,8 @@ static inline struct file_desc *find_file_desc(FdinfoEntry *fe)
struct fdinfo_list_entry *file_master(struct file_desc *d)
{
if (list_empty(&d->fd_info_head)) {
pr_err("Empty list on file desc id %#x\n", d->id);
pr_err("Empty list on file desc id %#x(%d)\n", d->id,
d->ops ? d->ops->type : -1);
BUG();
}