Skip to content

Commit

Permalink
ide-floppy: add a debug_mask module parameter
Browse files Browse the repository at this point in the history
... 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>
  • Loading branch information
Borislav Petkov authored and Bartlomiej Zolnierkiewicz committed Oct 13, 2008
1 parent 7b35572 commit 0964dbe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/ide/ide-floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@

#include "ide-floppy.h"

/* module parameters */
static unsigned long debug_mask;
module_param(debug_mask, ulong, 0644);

/* define to see debug info */
#define IDEFLOPPY_DEBUG_LOG 0

Expand Down Expand Up @@ -889,6 +893,8 @@ static int ide_floppy_probe(ide_drive_t *drive)

drive->driver_data = floppy;

drive->debug_mask = debug_mask;

idefloppy_setup(drive, floppy);

g->minors = 1 << PARTN_BITS;
Expand Down

0 comments on commit 0964dbe

Please sign in to comment.