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
This commit is contained in:
Stanislaw Gruszka
2008-07-08 07:59:42 +00:00
parent 0fd9c9b385
commit 5172b31980
4 changed files with 28 additions and 2 deletions

View File

@@ -264,6 +264,7 @@ debug2release:
patch -p0 <usr-release.patch
patch -p0 <qla2x00t-release.patch
patch -p0 <iscsi-release.patch
patch -p0 <qla_isp-release.patch
perf2debug:
echo "Changing current debug state from full performance to full debug"
@@ -278,6 +279,7 @@ release2debug:
patch -p0 -R <usr-release.patch
patch -p0 -R <qla2x00t-release.patch
patch -p0 -R <iscsi-release.patch
patch -p0 -R <qla_isp-release.patch
.PHONY: all install uninstall clean extraclean help \
qla qla_install qla_uninstall qla_clean qla_extraclean \

24
qla_isp-release.patch Normal file
View File

@@ -0,0 +1,24 @@
diff -uprN -X/home/stasiu/work/linux-2.6/Documentation/dontdiff qla_isp/linux/isp_pci.c qla_isp-1.0.0/linux/isp_pci.c
--- qla_isp/linux/isp_pci.c 2008-07-08 09:38:11.000000000 +0200
+++ qla_isp-1.0.0/linux/isp_pci.c 2008-07-06 12:50:35.000000000 +0200
@@ -548,7 +548,7 @@ isplinux_pci_init_one(struct Scsi_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 -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

View File

@@ -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);

View File

@@ -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