提交 0964dbe6 编写于 作者: B Borislav Petkov 提交者: Bartlomiej Zolnierkiewicz

ide-floppy: add a debug_mask module parameter

... with which to control to verbosity of debug messages on module load time.
Signed-off-by: NBorislav Petkov <petkovbb@gmail.com>
[bart: no need to zero debug_mask + move module_param() closer debug_mask]
[bart: init drive->debug_mask in ide_floppy_probe() not in idefloppy_open()]
Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
上级 7b355726
...@@ -49,6 +49,10 @@ ...@@ -49,6 +49,10 @@
#include "ide-floppy.h" #include "ide-floppy.h"
/* module parameters */
static unsigned long debug_mask;
module_param(debug_mask, ulong, 0644);
/* define to see debug info */ /* define to see debug info */
#define IDEFLOPPY_DEBUG_LOG 0 #define IDEFLOPPY_DEBUG_LOG 0
...@@ -889,6 +893,8 @@ static int ide_floppy_probe(ide_drive_t *drive) ...@@ -889,6 +893,8 @@ static int ide_floppy_probe(ide_drive_t *drive)
drive->driver_data = floppy; drive->driver_data = floppy;
drive->debug_mask = debug_mask;
idefloppy_setup(drive, floppy); idefloppy_setup(drive, floppy);
g->minors = 1 << PARTN_BITS; g->minors = 1 << PARTN_BITS;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册