All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] UML - print errno before resetting it
@ 2004-09-23  2:25 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2004-09-23  2:25 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, blaisorblade_spam

Make sure we print ERRNO and not always -1.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>

Index: linux-2.6.9-rc2-mm1-orig/arch/um/drivers/ubd_kern.c
===================================================================
--- linux-2.6.9-rc2-mm1-orig.orig/arch/um/drivers/ubd_kern.c	2004-09-22 20:39:58.000000000 -0400
+++ linux-2.6.9-rc2-mm1-orig/arch/um/drivers/ubd_kern.c	2004-09-22 20:45:40.000000000 -0400
@@ -776,10 +776,10 @@
 	io_pid = start_io_thread(stack + PAGE_SIZE - sizeof(void *), 
 				 &thread_fd);
 	if(io_pid < 0){
-		io_pid = -1;
 		printk(KERN_ERR 
 		       "ubd : Failed to start I/O thread (errno = %d) - "
 		       "falling back to synchronous I/O\n", -io_pid);
+		io_pid = -1;
 		return(0);
 	}
 	err = um_request_irq(UBD_IRQ, thread_fd, IRQ_READ, ubd_intr, 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-23  1:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-23  2:25 [PATCH] UML - print errno before resetting it Jeff Dike

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.