diff options
author | Borislav Petkov <petkovbb@googlemail.com> | 2008-10-13 15:39:35 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-13 15:39:35 -0400 |
commit | 0964dbe60c98f483567ac9a1220f6ab01a15c954 (patch) | |
tree | d4b2eaeb46617a8db27319c45533a78d239a5084 /drivers/ide | |
parent | 7b35572628bb807bf95e4d6282c67af95267928e (diff) |
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@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: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-floppy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 3de9478fe306..a11ec86925a3 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
@@ -49,6 +49,10 @@ | |||
49 | 49 | ||
50 | #include "ide-floppy.h" | 50 | #include "ide-floppy.h" |
51 | 51 | ||
52 | /* module parameters */ | ||
53 | static unsigned long debug_mask; | ||
54 | module_param(debug_mask, ulong, 0644); | ||
55 | |||
52 | /* define to see debug info */ | 56 | /* define to see debug info */ |
53 | #define IDEFLOPPY_DEBUG_LOG 0 | 57 | #define IDEFLOPPY_DEBUG_LOG 0 |
54 | 58 | ||
@@ -889,6 +893,8 @@ static int ide_floppy_probe(ide_drive_t *drive) | |||
889 | 893 | ||
890 | drive->driver_data = floppy; | 894 | drive->driver_data = floppy; |
891 | 895 | ||
896 | drive->debug_mask = debug_mask; | ||
897 | |||
892 | idefloppy_setup(drive, floppy); | 898 | idefloppy_setup(drive, floppy); |
893 | 899 | ||
894 | g->minors = 1 << PARTN_BITS; | 900 | g->minors = 1 << PARTN_BITS; |