ide: add drive->debug_mask switch
authorBorislav Petkov <petkovbb@googlemail.com>
Mon, 13 Oct 2008 19:39:34 +0000 (21:39 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 13 Oct 2008 19:39:34 +0000 (21:39 +0200)
Add a debugging on/off switch for controlling driver debugging
messages dynamically.

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
include/linux/ide.h

index 350ef47ed616f4d9898469eaa6656d654bc33b5c..fcd98e1d186300189df9ddd24807d52992c6aea2 100644 (file)
@@ -545,6 +545,9 @@ struct ide_drive_s {
 
        int             lun;            /* logical unit */
        int             crc_count;      /* crc counter to reduce drive speed */
+
+       unsigned long   debug_mask;     /* debugging levels switch */
+
 #ifdef CONFIG_BLK_DEV_IDEACPI
        struct ide_acpi_drive_link *acpidata;
 #endif