From: Borislav Petkov <petkovbb@googlemail.com>
To: Bartlomiej@gollum.tnic, Zolnierkiewicz@gollum.tnic, <bzolnier@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org,
Borislav Petkov <petkovbb@gmail.com>
Subject: [PATCH 5/5] ide-floppy: add a debug_mask module parameter
Date: Sun, 17 Aug 2008 19:23:46 +0200 [thread overview]
Message-ID: <1218993826-4571-6-git-send-email-petkovbb@gmail.com> (raw)
In-Reply-To: <1218993826-4571-1-git-send-email-petkovbb@gmail.com>
... with which to control to verbosity of debug messages on module load time.
Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
---
drivers/ide/ide-floppy.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index 3de9478..85022b8 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -49,6 +49,9 @@
#include "ide-floppy.h"
+/* module parameters */
+static unsigned long debug_mask = 0x0;
+
/* define to see debug info */
#define IDEFLOPPY_DEBUG_LOG 0
@@ -679,6 +682,8 @@ static ide_driver_t idefloppy_driver = {
#endif
};
+module_param(debug_mask, ulong, 0644);
+
static int idefloppy_open(struct inode *inode, struct file *filp)
{
struct gendisk *disk = inode->i_bdev->bd_disk;
@@ -692,6 +697,8 @@ static int idefloppy_open(struct inode *inode, struct file *filp)
drive = floppy->drive;
+ drive->debug_mask = debug_mask;
+
ide_debug_log(IDE_DBG_FUNC, "Call %s\n", __func__);
floppy->openers++;
--
1.5.5.4
next prev parent reply other threads:[~2008-08-17 17:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-17 17:23 [PATCH 0/5] ide debugging macros Borislav Petkov
2008-08-17 17:23 ` [PATCH 1/5] ide: unify conversion macros Borislav Petkov
2008-08-17 17:23 ` [PATCH 2/5] ide: add drive->debug_mask switch Borislav Petkov
2008-08-17 17:23 ` [PATCH 3/5] ide: add a driver-wide debugging macro Borislav Petkov
2008-08-17 18:13 ` Joe Perches
2008-08-17 18:24 ` Borislav Petkov
2008-08-17 17:23 ` [PATCH 4/5] ide-floppy: convert driver to the new " Borislav Petkov
2008-08-17 17:23 ` Borislav Petkov [this message]
2008-08-18 21:08 ` [PATCH 0/5] ide debugging macros Bartlomiej Zolnierkiewicz
2008-08-18 21:29 ` Bartlomiej Zolnierkiewicz
2008-08-19 6:15 ` Borislav Petkov
2008-08-19 6:23 ` Borislav Petkov
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=1218993826-4571-6-git-send-email-petkovbb@gmail.com \
--to=petkovbb@googlemail.com \
--cc=Bartlomiej@gollum.tnic \
--cc=Zolnierkiewicz@gollum.tnic \
--cc=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=petkovbb@gmail.com \
/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