From 5172b3198037daa53bf855a5c82f93f3327324fd Mon Sep 17 00:00:00 2001 From: Stanislaw Gruszka Date: Tue, 8 Jul 2008 07:59:42 +0000 Subject: [PATCH] Add release2debug and debug2release Makefile targets for qla_isp. Leave qla_isp in release 'state' as other stuff. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@434 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- Makefile | 2 ++ qla_isp-release.patch | 24 ++++++++++++++++++++++++ qla_isp/linux/isp_pci.c | 2 +- qla_isp/linux/isp_scst.c | 2 +- 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 qla_isp-release.patch diff --git a/Makefile b/Makefile index 8c2af416d..e322a681f 100644 --- a/Makefile +++ b/Makefile @@ -264,6 +264,7 @@ debug2release: patch -p0 isp_dblev = isp_debug; + } else { +- isp->isp_dblev = ISP_LOGCONFIG|ISP_LOGINFO|ISP_LOGWARN|ISP_LOGERR; ++ isp->isp_dblev = ISP_LOGERR; + } + + pci_read_config_word(pdev, PCI_COMMAND, &cmd); +diff -uprN -X/home/stasiu/work/linux-2.6/Documentation/dontdiff qla_isp/linux/isp_scst.c qla_isp-1.0.0/linux/isp_scst.c +--- qla_isp/linux/isp_scst.c 2008-07-08 09:38:11.000000000 +0200 ++++ qla_isp-1.0.0/linux/isp_scst.c 2008-07-06 12:49:07.000000000 +0200 +@@ -156,7 +156,7 @@ struct bus { + struct scst_proc_data proc_data; + }; + +-#define DEBUG 1 ++//#define DEBUG 1 + + #ifdef DEBUG + #define SDprintk if (debug) printk diff --git a/qla_isp/linux/isp_pci.c b/qla_isp/linux/isp_pci.c index d5cffdd16..2e404cdd5 100644 --- a/qla_isp/linux/isp_pci.c +++ b/qla_isp/linux/isp_pci.c @@ -548,7 +548,7 @@ isplinux_pci_init_one(struct Scsi_Host *host) if (isp_debug) { isp->isp_dblev = isp_debug; } else { - isp->isp_dblev = ISP_LOGCONFIG|ISP_LOGINFO|ISP_LOGWARN|ISP_LOGERR; + isp->isp_dblev = ISP_LOGERR; } pci_read_config_word(pdev, PCI_COMMAND, &cmd); diff --git a/qla_isp/linux/isp_scst.c b/qla_isp/linux/isp_scst.c index 29f8e7dbe..39dfe89c7 100644 --- a/qla_isp/linux/isp_scst.c +++ b/qla_isp/linux/isp_scst.c @@ -156,7 +156,7 @@ struct bus { struct scst_proc_data proc_data; }; -#define DEBUG 1 +//#define DEBUG 1 #ifdef DEBUG #define SDprintk if (debug) printk