]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
[PATCH] uml: add back accidentally removed error
authorJeff Dike <jdike@addtoit.com>
Thu, 1 Mar 2007 04:13:11 +0000 (20:13 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 1 Mar 2007 22:53:38 +0000 (14:53 -0800)
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>
arch/um/os-Linux/sigio.c

index b2e1fd8e35712504c1b8190acd2175f923ce7e5e..3fc43b33db667d370ceabf7e63794b43ab0df441 100644 (file)
@@ -334,8 +334,11 @@ void maybe_sigio_broken(int fd, int read)
 
        sigio_lock();
        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;
+       }
 
        all_sigio_fds.poll[all_sigio_fds.used++] =
                ((struct pollfd) { .fd          = fd,