Re: [PATCH] swsusp: misc cleanups [4/4]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Sunday, 24 of April 2005 00:07, Pavel Machek wrote:
> Hi!
> 
> > The following patch makes some comments and printk()s in swsusp.c up to date.
> > In particular it adds the string "swsusp" before every message that is printed by
> > the code in swsusp.c.
> 
> I don't like this one. Adding swsusp everywhere just clutters the
> screen, most of it should be clear from context.

Right.  Still, I'd like to drop function names from debug messages
and replace "suspend" with "swsusp" in some messages.  I'll send another
patch for it after 2.6.12 (please let me know if you don't think it's a good
idea ;-)).

For now, please drop the patch altogether.

> > @@ -1226,9 +1222,6 @@ static int check_sig(void)
> >  
> >  /**
> >   *	data_read - Read image pages from swap.
> > - *
> > - *	You do not need to check for overlaps, check_pagedir()
> > - *	already did that.
> >   */
> >  
> >  static int data_read(struct pbe *pblist)
> 
> Why is this comment no longer valid?

It's just confusing.  Initially, I didn't intend to change it, but then I read it
and thought "What overlaps?".  In data_read() there's nothing that could
overlap with anything else ...

Greets,
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux