[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1218993826-4571-6-git-send-email-petkovbb@gmail.com>
Date: Sun, 17 Aug 2008 19:23:46 +0200
From: Borislav Petkov <petkovbb@...glemail.com>
To: Bartlomiej@...lum.tnic, Zolnierkiewicz@...lum.tnic,
<bzolnier@...il.com>
Cc: linux-kernel@...r.kernel.org, linux-ide@...r.kernel.org,
Borislav Petkov <petkovbb@...il.com>
Subject: [PATCH 5/5] ide-floppy: add a debug_mask module parameter
... with which to control to verbosity of debug messages on module load time.
Signed-off-by: Borislav Petkov <petkovbb@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists