Browse Source

[PATCH] uml: add back accidentally removed error

In the 2.6.20 hang patch, I accidentally threw out an error message.
This puts it back.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Jeff Dike 18 years ago
parent
commit
04a51e66ad
1 changed files with 4 additions and 1 deletions
  1. 4 1
      arch/um/os-Linux/sigio.c

+ 4 - 1
arch/um/os-Linux/sigio.c

@@ -334,8 +334,11 @@ void maybe_sigio_broken(int fd, int read)
 
 
 	sigio_lock();
 	sigio_lock();
 	err = need_poll(&all_sigio_fds, all_sigio_fds.used + 1);
 	err = need_poll(&all_sigio_fds, all_sigio_fds.used + 1);
-	if(err)
+	if(err){
+		printk("maybe_sigio_broken - failed to add pollfd for "
+		       "descriptor %d\n", fd);
 		goto out;
 		goto out;
+	}
 
 
 	all_sigio_fds.poll[all_sigio_fds.used++] =
 	all_sigio_fds.poll[all_sigio_fds.used++] =
 		((struct pollfd) { .fd  	= fd,
 		((struct pollfd) { .fd  	= fd,