[SCSI] libsas: convert to standard kernel debugging
authorJames Bottomley <James.Bottomley@suse.de>
Sun, 23 Jan 2011 14:19:00 +0000 (08:19 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 24 Jan 2011 18:05:38 +0000 (12:05 -0600)
Instead of using a config option for debugging, just dump the
messages with KERN_DEBUG.

Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libsas/Kconfig
drivers/scsi/libsas/Makefile
drivers/scsi/libsas/sas_dump.c
drivers/scsi/libsas/sas_dump.h
drivers/scsi/libsas/sas_internal.h

index 18f33cd54411c7cf2772fc57780d16f1b62be8aa..9dafe64e7c7ace76e25aaabcb21d06c39b4241b1 100644 (file)
@@ -46,11 +46,3 @@ config SCSI_SAS_HOST_SMP
                Allows sas hosts to receive SMP frames.  Selecting this
                option builds an SMP interpreter into libsas.  Say
                N here if you want to save the few kb this consumes.
-
-config SCSI_SAS_LIBSAS_DEBUG
-       bool "Compile the SAS Domain Transport Attributes in debug mode"
-       default y
-       depends on SCSI_SAS_LIBSAS
-       help
-               Compiles the SAS Layer in debug mode.  In debug mode, the
-               SAS Layer prints diagnostic and debug messages.
index 1ad1323c60fa096966f982602b826cb749c601ad..566a10024598b630f44d28544a22de8cd636ccca 100644 (file)
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 # USA
 
-ifeq ($(CONFIG_SCSI_SAS_LIBSAS_DEBUG),y)
-       EXTRA_CFLAGS += -DSAS_DEBUG
-endif
-
 obj-$(CONFIG_SCSI_SAS_LIBSAS) += libsas.o
 libsas-y +=  sas_init.o     \
                sas_phy.o      \
index c17c25030f1cb3503990ba73e49b6f540fe95272..fc460933575c76e57d4433a40801cf4403333506 100644 (file)
@@ -24,8 +24,6 @@
 
 #include "sas_dump.h"
 
-#ifdef SAS_DEBUG
-
 static const char *sas_hae_str[] = {
        [0] = "HAE_RESET",
 };
@@ -72,5 +70,3 @@ void sas_dump_port(struct asd_sas_port *port)
        SAS_DPRINTK("port%d: oob_mode:0x%x\n", port->id, port->oob_mode);
        SAS_DPRINTK("port%d: num_phys:%d\n", port->id, port->num_phys);
 }
-
-#endif /* SAS_DEBUG */
index 47b45d4f5258a469e9941a34e69d24e07cb7cd80..800e4c69093fb68afd30ddad29dcb903b207c695 100644 (file)
 
 #include "sas_internal.h"
 
-#ifdef SAS_DEBUG
-
 void sas_dprint_porte(int phyid, enum port_event pe);
 void sas_dprint_phye(int phyid, enum phy_event pe);
 void sas_dprint_hae(struct sas_ha_struct *sas_ha, enum ha_event he);
 void sas_dump_port(struct asd_sas_port *port);
-
-#else /* SAS_DEBUG */
-
-static inline void sas_dprint_porte(int phyid, enum port_event pe) { }
-static inline void sas_dprint_phye(int phyid, enum phy_event pe) { }
-static inline void sas_dprint_hae(struct sas_ha_struct *sas_ha,
-                                 enum ha_event he) { }
-static inline void sas_dump_port(struct asd_sas_port *port) { }
-
-#endif /* SAS_DEBUG */
index 0001374bd6b251164d69d7fdf3b7ced78e4b5901..8b538bd1ff2bbcc3e5967b8369d03068856fa1c8 100644 (file)
 
 #define sas_printk(fmt, ...) printk(KERN_NOTICE "sas: " fmt, ## __VA_ARGS__)
 
-#ifdef SAS_DEBUG
-#define SAS_DPRINTK(fmt, ...) printk(KERN_NOTICE "sas: " fmt, ## __VA_ARGS__)
-#else
-#define SAS_DPRINTK(fmt, ...)
-#endif
+#define SAS_DPRINTK(fmt, ...) printk(KERN_DEBUG "sas: " fmt, ## __VA_ARGS__)
 
 #define TO_SAS_TASK(_scsi_cmd)  ((void *)(_scsi_cmd)->host_scribble)
 #define ASSIGN_SAS_TASK(_sc, _t) do { (_sc)->host_scribble = (void *) _t; } while (0)