public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* typo in debugfs code comments?
@ 2005-12-10  2:01 Bao Zhao
  2005-12-10  2:57 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Bao Zhao @ 2005-12-10  2:01 UTC (permalink / raw)
  To: linux-kernel; +Cc: greg

  I think that the comments of debugfs_create_u16 and
debugfs_create_u32 
have the copy and paste error.
  
below is original comments.
/**
 * debugfs_create_u16 - create a file in the debugfs
filesystem that is used to read and write a unsigned 8
bit value.
 *

/**
 * debugfs_create_u32 - create a file in the debugfs
filesystem that is used to read and write a unsigned 8
bit value.
 *

It should be "a unsigned 16 bit value" and "a unsigned
32 bit value"

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

* Re: typo in debugfs code comments?
  2005-12-10  2:01 typo in debugfs code comments? Bao Zhao
@ 2005-12-10  2:57 ` Greg KH
  2005-12-10  7:50   ` Bao Zhao
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2005-12-10  2:57 UTC (permalink / raw)
  To: Bao Zhao; +Cc: linux-kernel

On Fri, Dec 09, 2005 at 06:01:34PM -0800, Bao Zhao wrote:
>   I think that the comments of debugfs_create_u16 and
> debugfs_create_u32 
> have the copy and paste error.
>   
> below is original comments.
> /**
>  * debugfs_create_u16 - create a file in the debugfs
> filesystem that is used to read and write a unsigned 8
> bit value.
>  *
> 
> /**
>  * debugfs_create_u32 - create a file in the debugfs
> filesystem that is used to read and write a unsigned 8
> bit value.
>  *
> 
> It should be "a unsigned 16 bit value" and "a unsigned
> 32 bit value"

Heh, cut and paste comments :)

Care to send me a patch, as per Documentation/SubmittingPatches to fix
this up?

thanks,

greg k-h

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

* Re: typo in debugfs code comments?
  2005-12-10  2:57 ` Greg KH
@ 2005-12-10  7:50   ` Bao Zhao
  2005-12-10  8:18     ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Bao Zhao @ 2005-12-10  7:50 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel



--- Greg KH <greg@kroah.com> wrote:

> On Fri, Dec 09, 2005 at 06:01:34PM -0800, Bao Zhao
> wrote:
> >   I think that the comments of debugfs_create_u16
> and
> > debugfs_create_u32 
> > have the copy and paste error.
> >   
> > below is original comments.
> > /**
> >  * debugfs_create_u16 - create a file in the
> debugfs
> > filesystem that is used to read and write a
> unsigned 8
> > bit value.
> >  *
> > 
> > /**
> >  * debugfs_create_u32 - create a file in the
> debugfs
> > filesystem that is used to read and write a
> unsigned 8
> > bit value.
> >  *
> > 
> > It should be "a unsigned 16 bit value" and "a
> unsigned
> > 32 bit value"
> 
> Heh, cut and paste comments :)
> 
> Care to send me a patch, as per
> Documentation/SubmittingPatches to fix
> this up?
> 
> thanks,
> 
> greg k-h
> 

This patch fixes cut and paste error in debugfs.

Signed-off-by: Zhao Bao <baozhaolinuxer@yahoo.com>

---

--- linux-2.6.14.3/fs/debugfs/file.c.orig	2005-12-03
17:39:41.000000000 -0500
+++ linux-2.6.14.3/fs/debugfs/file.c	2005-12-03
17:41:15.000000000 -0500
@@ -98,7 +98,7 @@ static u64 debugfs_u16_get(void
*data)
 DEFINE_SIMPLE_ATTRIBUTE(fops_u16, debugfs_u16_get,
debugfs_u16_set, "%llu\n");
 
 /**
- * debugfs_create_u16 - create a file in the debugfs
filesystem that is used to read and write a unsigned 8
bit value.
+ * debugfs_create_u16 - create a file in the debugfs
filesystem that is used to read and write a unsigned
16 bit value.
  *
  * @name: a pointer to a string containing the name
of the file to create.
  * @mode: the permission that the file should have
@@ -140,7 +140,7 @@ static u64 debugfs_u32_get(void
*data)
 DEFINE_SIMPLE_ATTRIBUTE(fops_u32, debugfs_u32_get,
debugfs_u32_set, "%llu\n");
 
 /**
- * debugfs_create_u32 - create a file in the debugfs
filesystem that is used to read and write a unsigned 8
bit value.
+ * debugfs_create_u32 - create a file in the debugfs
filesystem that is used to read and write a unsigned
32 bit value.
  *
  * @name: a pointer to a string containing the name
of the file to create.
  * @mode: the permission that the file should have



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

* Re: typo in debugfs code comments?
  2005-12-10  7:50   ` Bao Zhao
@ 2005-12-10  8:18     ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2005-12-10  8:18 UTC (permalink / raw)
  To: Bao Zhao; +Cc: linux-kernel

On Fri, Dec 09, 2005 at 11:50:12PM -0800, Bao Zhao wrote:
> --- linux-2.6.14.3/fs/debugfs/file.c.orig	2005-12-03
> 17:39:41.000000000 -0500
> +++ linux-2.6.14.3/fs/debugfs/file.c	2005-12-03
> 17:41:15.000000000 -0500
> @@ -98,7 +98,7 @@ static u64 debugfs_u16_get(void
> *data)
>  DEFINE_SIMPLE_ATTRIBUTE(fops_u16, debugfs_u16_get,
> debugfs_u16_set, "%llu\n");

Your patch is linewrapped and can't be applied.  Care to try again?

thanks,

greg k-h

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

end of thread, other threads:[~2005-12-10  8:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-10  2:01 typo in debugfs code comments? Bao Zhao
2005-12-10  2:57 ` Greg KH
2005-12-10  7:50   ` Bao Zhao
2005-12-10  8:18     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox