lkml.org 
[lkml]   [2005]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH encrypted swsusp 1/3] core functionality
Date
Hi,

On Monday, 11 of April 2005 23:08, Pavel Machek wrote:
> Hi!
>
]--snip--[
> > > @@ -130,6 +150,52 @@
> > > static unsigned short swapfile_used[MAX_SWAPFILES];
> > > static unsigned short root_swap;
> > >
> > > +#ifdef CONFIG_SWSUSP_ENCRYPT
> > > +static struct crypto_tfm *crypto_init(int mode)
> >
> > I think it's better if this function returns an int error code and the
> > messages are printed where it's called from. This way, the essential
> > part of the code would be easier to grasp (Pavel?).
>
> Agreed. Actually I do not care where messages are printed, but
> returning different code for different errors seems right.

Hm. You probably don't want suspend-related messages to be printed during
resume (this function is called in two different places)? :-)

Rafael


--
- Would you tell me, please, which way I ought to go from here?
- That depends a good deal on where you want to get to.
-- Lewis Carroll "Alice's Adventures in Wonderland"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-04-11 23:38    [W:0.103 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site