public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org
Cc: gregkh@suse.de
Subject: [PATCH] debugfs: fix bool built-in type.
Date: Wed, 9 Mar 2005 16:26:22 -0800	[thread overview]
Message-ID: <11104143823768@kroah.com> (raw)
In-Reply-To: <1110414382208@kroah.com>

ChangeSet 1.2034, 2005/03/09 15:24:27-08:00, gregkh@suse.de

[PATCH] debugfs: fix bool built-in type.

Thanks to Alessandro Rubini <rubini@gnudd.com> for pointing this out.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>


 fs/debugfs/file.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/fs/debugfs/file.c b/fs/debugfs/file.c
--- a/fs/debugfs/file.c	2005-03-09 16:23:02 -08:00
+++ b/fs/debugfs/file.c	2005-03-09 16:23:02 -08:00
@@ -186,7 +186,7 @@
 	char buf[3];
 	u32 *val = file->private_data;
 	
-	if (val)
+	if (*val)
 		buf[0] = 'Y';
 	else
 		buf[0] = 'N';


      reply	other threads:[~2005-03-10  0:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-10  0:24 [BK PATCH] debugfs fixes for 2.6.11 Greg KH
2005-03-10  0:26 ` [PATCH] debufs: make built in types add a \n to their output Greg KH
2005-03-10  0:26   ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11104143823768@kroah.com \
    --to=greg@kroah.com \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox