diff options
Diffstat (limited to 'drivers/s390/cio/cio.c')
-rw-r--r-- | drivers/s390/cio/cio.c | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/drivers/s390/cio/cio.c b/drivers/s390/cio/cio.c index 469b00774c5e..cd5475b82420 100644 --- a/drivers/s390/cio/cio.c +++ b/drivers/s390/cio/cio.c | |||
@@ -56,39 +56,37 @@ __setup ("cio_msg=", cio_setup); | |||
56 | 56 | ||
57 | /* | 57 | /* |
58 | * Function: cio_debug_init | 58 | * Function: cio_debug_init |
59 | * Initializes three debug logs (under /proc/s390dbf) for common I/O: | 59 | * Initializes three debug logs for common I/O: |
60 | * - cio_msg logs the messages which are printk'ed when CONFIG_DEBUG_IO is on | 60 | * - cio_msg logs generic cio messages |
61 | * - cio_trace logs the calling of different functions | 61 | * - cio_trace logs the calling of different functions |
62 | * - cio_crw logs the messages which are printk'ed when CONFIG_DEBUG_CRW is on | 62 | * - cio_crw logs machine check related cio messages |
63 | * debug levels depend on CONFIG_DEBUG_IO resp. CONFIG_DEBUG_CRW | ||
64 | */ | 63 | */ |
65 | static int __init | 64 | static int __init cio_debug_init(void) |
66 | cio_debug_init (void) | ||
67 | { | 65 | { |
68 | cio_debug_msg_id = debug_register ("cio_msg", 16, 4, 16*sizeof (long)); | 66 | cio_debug_msg_id = debug_register("cio_msg", 16, 4, 16 * sizeof(long)); |
69 | if (!cio_debug_msg_id) | 67 | if (!cio_debug_msg_id) |
70 | goto out_unregister; | 68 | goto out_unregister; |
71 | debug_register_view (cio_debug_msg_id, &debug_sprintf_view); | 69 | debug_register_view(cio_debug_msg_id, &debug_sprintf_view); |
72 | debug_set_level (cio_debug_msg_id, 2); | 70 | debug_set_level(cio_debug_msg_id, 2); |
73 | cio_debug_trace_id = debug_register ("cio_trace", 16, 4, 16); | 71 | cio_debug_trace_id = debug_register("cio_trace", 16, 4, 16); |
74 | if (!cio_debug_trace_id) | 72 | if (!cio_debug_trace_id) |
75 | goto out_unregister; | 73 | goto out_unregister; |
76 | debug_register_view (cio_debug_trace_id, &debug_hex_ascii_view); | 74 | debug_register_view(cio_debug_trace_id, &debug_hex_ascii_view); |
77 | debug_set_level (cio_debug_trace_id, 2); | 75 | debug_set_level(cio_debug_trace_id, 2); |
78 | cio_debug_crw_id = debug_register ("cio_crw", 4, 4, 16*sizeof (long)); | 76 | cio_debug_crw_id = debug_register("cio_crw", 16, 4, 16 * sizeof(long)); |
79 | if (!cio_debug_crw_id) | 77 | if (!cio_debug_crw_id) |
80 | goto out_unregister; | 78 | goto out_unregister; |
81 | debug_register_view (cio_debug_crw_id, &debug_sprintf_view); | 79 | debug_register_view(cio_debug_crw_id, &debug_sprintf_view); |
82 | debug_set_level (cio_debug_crw_id, 2); | 80 | debug_set_level(cio_debug_crw_id, 4); |
83 | return 0; | 81 | return 0; |
84 | 82 | ||
85 | out_unregister: | 83 | out_unregister: |
86 | if (cio_debug_msg_id) | 84 | if (cio_debug_msg_id) |
87 | debug_unregister (cio_debug_msg_id); | 85 | debug_unregister(cio_debug_msg_id); |
88 | if (cio_debug_trace_id) | 86 | if (cio_debug_trace_id) |
89 | debug_unregister (cio_debug_trace_id); | 87 | debug_unregister(cio_debug_trace_id); |
90 | if (cio_debug_crw_id) | 88 | if (cio_debug_crw_id) |
91 | debug_unregister (cio_debug_crw_id); | 89 | debug_unregister(cio_debug_crw_id); |
92 | printk(KERN_WARNING"cio: could not initialize debugging\n"); | 90 | printk(KERN_WARNING"cio: could not initialize debugging\n"); |
93 | return -1; | 91 | return -1; |
94 | } | 92 | } |
@@ -567,7 +565,7 @@ cio_validate_subchannel (struct subchannel *sch, struct subchannel_id schid) | |||
567 | */ | 565 | */ |
568 | if (sch->st != 0) { | 566 | if (sch->st != 0) { |
569 | CIO_DEBUG(KERN_INFO, 0, | 567 | CIO_DEBUG(KERN_INFO, 0, |
570 | "cio: Subchannel 0.%x.%04x reports " | 568 | "Subchannel 0.%x.%04x reports " |
571 | "non-I/O subchannel type %04X\n", | 569 | "non-I/O subchannel type %04X\n", |
572 | sch->schid.ssid, sch->schid.sch_no, sch->st); | 570 | sch->schid.ssid, sch->schid.sch_no, sch->st); |
573 | /* We stop here for non-io subchannels. */ | 571 | /* We stop here for non-io subchannels. */ |
@@ -600,7 +598,7 @@ cio_validate_subchannel (struct subchannel *sch, struct subchannel_id schid) | |||
600 | sch->lpm = sch->schib.pmcw.pam & sch->opm; | 598 | sch->lpm = sch->schib.pmcw.pam & sch->opm; |
601 | 599 | ||
602 | CIO_DEBUG(KERN_INFO, 0, | 600 | CIO_DEBUG(KERN_INFO, 0, |
603 | "cio: Detected device %04x on subchannel 0.%x.%04X" | 601 | "Detected device %04x on subchannel 0.%x.%04X" |
604 | " - PIM = %02X, PAM = %02X, POM = %02X\n", | 602 | " - PIM = %02X, PAM = %02X, POM = %02X\n", |
605 | sch->schib.pmcw.dev, sch->schid.ssid, | 603 | sch->schib.pmcw.dev, sch->schid.ssid, |
606 | sch->schid.sch_no, sch->schib.pmcw.pim, | 604 | sch->schid.sch_no, sch->schib.pmcw.pim, |