linux-um.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [uml-devel] PATCH kernel/umid.c
@ 2004-01-26 12:47 Dan Shearer
  2004-01-26 13:03 ` [uml-devel] " Dan Shearer
  2004-01-28  1:46 ` Jeff Dike
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Shearer @ 2004-01-26 12:47 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: Jeff Dike

--- umid.c.orig 2004-01-26 23:10:38.000000000 +1030
+++ umid.c      2004-01-26 23:11:41.000000000 +1030
@@ -205,7 +205,7 @@
                        printf("Failed to malloc uml_dir - error = %d\n",
                               errno);
                        uml_dir = name;
-                       return(0);
+                       return(1);
                }
                sprintf(uml_dir, "%s/", name);
        }

(and the sf list seems to have nearly completely stopped over the last
36 hours.)

-- 
Dan Shearer
dan@shearer.org


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [uml-devel] Re: PATCH kernel/umid.c
  2004-01-26 12:47 [uml-devel] PATCH kernel/umid.c Dan Shearer
@ 2004-01-26 13:03 ` Dan Shearer
  2004-01-28  1:46 ` Jeff Dike
  1 sibling, 0 replies; 3+ messages in thread
From: Dan Shearer @ 2004-01-26 13:03 UTC (permalink / raw)
  To: Jeff Dike; +Cc: user-mode-linux-devel

In addition, umid.c seems to be a bit inconsistent as to what rates an
exit(1) and what just does return(1).

On Mon, Jan 26, 2004 at 11:17:08PM +1030, Dan Shearer wrote:
> --- umid.c.orig 2004-01-26 23:10:38.000000000 +1030
> +++ umid.c      2004-01-26 23:11:41.000000000 +1030
> @@ -205,7 +205,7 @@
>                         printf("Failed to malloc uml_dir - error = %d\n",
>                                errno);
>                         uml_dir = name;
> -                       return(0);
> +                       return(1);
>                 }
>                 sprintf(uml_dir, "%s/", name);
>         }

-- 
Dan Shearer
dan@shearer.org


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [uml-devel] Re: PATCH kernel/umid.c
  2004-01-26 12:47 [uml-devel] PATCH kernel/umid.c Dan Shearer
  2004-01-26 13:03 ` [uml-devel] " Dan Shearer
@ 2004-01-28  1:46 ` Jeff Dike
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Dike @ 2004-01-28  1:46 UTC (permalink / raw)
  To: Dan Shearer; +Cc: user-mode-linux-devel

dan@shearer.org said:
> -                       return(0); 
> +                       return(1);

I did the return(0) on purpose because, even though initcall procedures are
declared as returning an int, do_initcalls ignores it.

So, I added a comment there instead of changing the return value.

> In addition, umid.c seems to be a bit inconsistent as to what rates an
> exit(1) and what just does return(1). 

Stuff that's done early, before the kernel is actually running, rates an 
exit(1).  Everything else gets a return(1).  I don't always follow this rule,
but I did a quick check of umid.c and it looks OK.

				Jeff


				Jeff



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-01-28  1:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-26 12:47 [uml-devel] PATCH kernel/umid.c Dan Shearer
2004-01-26 13:03 ` [uml-devel] " Dan Shearer
2004-01-28  1:46 ` Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).