aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Tiedemann <ptiedem@de.ibm.com>2008-01-26 08:11:30 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2008-01-26 08:11:33 -0500
commit361f494d4e62ee5f7a971bf34945deeb69392159 (patch)
tree732b4e21ce9da4056a17eb85bdf1004a712ab87e
parent5c81cdbeff72e7fc2eb62ee5dc26197e54f9a06c (diff)
[S390] usage of s390dbf: shrink number of debug areas to use.
Signed-off-by: Peter Tiedemann <ptiedem@de.ibm.com>
-rw-r--r--drivers/s390/block/dasd.c4
-rw-r--r--drivers/s390/cio/cio.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c
index 99268b964f67..1db15f3e5d20 100644
--- a/drivers/s390/block/dasd.c
+++ b/drivers/s390/block/dasd.c
@@ -214,7 +214,7 @@ static int dasd_state_known_to_basic(struct dasd_device *device)
214 return rc; 214 return rc;
215 } 215 }
216 /* register 'device' debug area, used for all DBF_DEV_XXX calls */ 216 /* register 'device' debug area, used for all DBF_DEV_XXX calls */
217 device->debug_area = debug_register(device->cdev->dev.bus_id, 1, 2, 217 device->debug_area = debug_register(device->cdev->dev.bus_id, 1, 1,
218 8 * sizeof(long)); 218 8 * sizeof(long));
219 debug_register_view(device->debug_area, &debug_sprintf_view); 219 debug_register_view(device->debug_area, &debug_sprintf_view);
220 debug_set_level(device->debug_area, DBF_WARNING); 220 debug_set_level(device->debug_area, DBF_WARNING);
@@ -2435,7 +2435,7 @@ static int __init dasd_init(void)
2435 init_waitqueue_head(&dasd_flush_wq); 2435 init_waitqueue_head(&dasd_flush_wq);
2436 2436
2437 /* register 'common' DASD debug area, used for all DBF_XXX calls */ 2437 /* register 'common' DASD debug area, used for all DBF_XXX calls */
2438 dasd_debug_area = debug_register("dasd", 1, 2, 8 * sizeof(long)); 2438 dasd_debug_area = debug_register("dasd", 1, 1, 8 * sizeof(long));
2439 if (dasd_debug_area == NULL) { 2439 if (dasd_debug_area == NULL) {
2440 rc = -ENOMEM; 2440 rc = -ENOMEM;
2441 goto failed; 2441 goto failed;
diff --git a/drivers/s390/cio/cio.c b/drivers/s390/cio/cio.c
index 11f632f9db58..60590a12d529 100644
--- a/drivers/s390/cio/cio.c
+++ b/drivers/s390/cio/cio.c
@@ -64,17 +64,17 @@ __setup ("cio_msg=", cio_setup);
64 */ 64 */
65static int __init cio_debug_init(void) 65static int __init cio_debug_init(void)
66{ 66{
67 cio_debug_msg_id = debug_register("cio_msg", 16, 4, 16 * sizeof(long)); 67 cio_debug_msg_id = debug_register("cio_msg", 16, 1, 16 * sizeof(long));
68 if (!cio_debug_msg_id) 68 if (!cio_debug_msg_id)
69 goto out_unregister; 69 goto out_unregister;
70 debug_register_view(cio_debug_msg_id, &debug_sprintf_view); 70 debug_register_view(cio_debug_msg_id, &debug_sprintf_view);
71 debug_set_level(cio_debug_msg_id, 2); 71 debug_set_level(cio_debug_msg_id, 2);
72 cio_debug_trace_id = debug_register("cio_trace", 16, 4, 16); 72 cio_debug_trace_id = debug_register("cio_trace", 16, 1, 16);
73 if (!cio_debug_trace_id) 73 if (!cio_debug_trace_id)
74 goto out_unregister; 74 goto out_unregister;
75 debug_register_view(cio_debug_trace_id, &debug_hex_ascii_view); 75 debug_register_view(cio_debug_trace_id, &debug_hex_ascii_view);
76 debug_set_level(cio_debug_trace_id, 2); 76 debug_set_level(cio_debug_trace_id, 2);
77 cio_debug_crw_id = debug_register("cio_crw", 16, 4, 16 * sizeof(long)); 77 cio_debug_crw_id = debug_register("cio_crw", 16, 1, 16 * sizeof(long));
78 if (!cio_debug_crw_id) 78 if (!cio_debug_crw_id)
79 goto out_unregister; 79 goto out_unregister;
80 debug_register_view(cio_debug_crw_id, &debug_sprintf_view); 80 debug_register_view(cio_debug_crw_id, &debug_sprintf_view);