aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/s390/scsi/zfcp_dbf.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_dbf.c b/drivers/s390/scsi/zfcp_dbf.c
index e1a8cc2526e7..132a905b6bdb 100644
--- a/drivers/s390/scsi/zfcp_dbf.c
+++ b/drivers/s390/scsi/zfcp_dbf.c
@@ -3,7 +3,7 @@
3 * 3 *
4 * Debug traces for zfcp. 4 * Debug traces for zfcp.
5 * 5 *
6 * Copyright IBM Corp. 2002, 2010 6 * Copyright IBM Corp. 2002, 2013
7 */ 7 */
8 8
9#define KMSG_COMPONENT "zfcp" 9#define KMSG_COMPONENT "zfcp"
@@ -23,6 +23,13 @@ module_param(dbfsize, uint, 0400);
23MODULE_PARM_DESC(dbfsize, 23MODULE_PARM_DESC(dbfsize,
24 "number of pages for each debug feature area (default 4)"); 24 "number of pages for each debug feature area (default 4)");
25 25
26static u32 dbflevel = 3;
27
28module_param(dbflevel, uint, 0400);
29MODULE_PARM_DESC(dbflevel,
30 "log level for each debug feature area "
31 "(default 3, range 0..6)");
32
26static inline unsigned int zfcp_dbf_plen(unsigned int offset) 33static inline unsigned int zfcp_dbf_plen(unsigned int offset)
27{ 34{
28 return sizeof(struct zfcp_dbf_pay) + offset - ZFCP_DBF_PAY_MAX_REC; 35 return sizeof(struct zfcp_dbf_pay) + offset - ZFCP_DBF_PAY_MAX_REC;
@@ -447,7 +454,7 @@ static debug_info_t *zfcp_dbf_reg(const char *name, int size, int rec_size)
447 return NULL; 454 return NULL;
448 455
449 debug_register_view(d, &debug_hex_ascii_view); 456 debug_register_view(d, &debug_hex_ascii_view);
450 debug_set_level(d, 3); 457 debug_set_level(d, dbflevel);
451 458
452 return d; 459 return d;
453} 460}