diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-07-14 03:59:28 -0400 |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2008-07-14 04:02:19 -0400 |
commit | a12c53f4fa759b59654b6d5f21eb4070cd45cd54 (patch) | |
tree | ca2c7ff8ecde4cc57518403fbd5ceb48fbe9f9cd /drivers/s390/char | |
parent | 1a89dd8f0b4d7eca2dd4abffb736f37676e1b073 (diff) |
[S390] Cleanup sclp printk messages.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'drivers/s390/char')
-rw-r--r-- | drivers/s390/char/sclp.c | 8 | ||||
-rw-r--r-- | drivers/s390/char/sclp_con.c | 2 | ||||
-rw-r--r-- | drivers/s390/char/sclp_config.c | 4 | ||||
-rw-r--r-- | drivers/s390/char/sclp_cpi_sys.c | 12 | ||||
-rw-r--r-- | drivers/s390/char/sclp_quiesce.c | 8 | ||||
-rw-r--r-- | drivers/s390/char/sclp_rw.c | 2 | ||||
-rw-r--r-- | drivers/s390/char/sclp_sdias.c | 4 | ||||
-rw-r--r-- | drivers/s390/char/sclp_tty.c | 8 | ||||
-rw-r--r-- | drivers/s390/char/sclp_vt220.c | 7 |
9 files changed, 9 insertions, 46 deletions
diff --git a/drivers/s390/char/sclp.c b/drivers/s390/char/sclp.c index 277f9ccfbb7c..fb97cf5ee674 100644 --- a/drivers/s390/char/sclp.c +++ b/drivers/s390/char/sclp.c | |||
@@ -784,11 +784,9 @@ sclp_check_handler(__u16 code) | |||
784 | /* Is this the interrupt we are waiting for? */ | 784 | /* Is this the interrupt we are waiting for? */ |
785 | if (finished_sccb == 0) | 785 | if (finished_sccb == 0) |
786 | return; | 786 | return; |
787 | if (finished_sccb != (u32) (addr_t) sclp_init_sccb) { | 787 | if (finished_sccb != (u32) (addr_t) sclp_init_sccb) |
788 | printk(KERN_WARNING SCLP_HEADER "unsolicited interrupt " | 788 | panic("sclp: unsolicited interrupt for buffer at 0x%x\n", |
789 | "for buffer at 0x%x\n", finished_sccb); | 789 | finished_sccb); |
790 | return; | ||
791 | } | ||
792 | spin_lock(&sclp_lock); | 790 | spin_lock(&sclp_lock); |
793 | if (sclp_running_state == sclp_running_state_running) { | 791 | if (sclp_running_state == sclp_running_state_running) { |
794 | sclp_init_req.status = SCLP_REQ_DONE; | 792 | sclp_init_req.status = SCLP_REQ_DONE; |
diff --git a/drivers/s390/char/sclp_con.c b/drivers/s390/char/sclp_con.c index 23bb90a5ed29..0ddf1b7c00da 100644 --- a/drivers/s390/char/sclp_con.c +++ b/drivers/s390/char/sclp_con.c | |||
@@ -20,8 +20,6 @@ | |||
20 | #include "sclp_rw.h" | 20 | #include "sclp_rw.h" |
21 | #include "sclp_tty.h" | 21 | #include "sclp_tty.h" |
22 | 22 | ||
23 | #define SCLP_CON_PRINT_HEADER "sclp console driver: " | ||
24 | |||
25 | #define sclp_console_major 4 /* TTYAUX_MAJOR */ | 23 | #define sclp_console_major 4 /* TTYAUX_MAJOR */ |
26 | #define sclp_console_minor 64 | 24 | #define sclp_console_minor 64 |
27 | #define sclp_console_name "ttyS" | 25 | #define sclp_console_name "ttyS" |
diff --git a/drivers/s390/char/sclp_config.c b/drivers/s390/char/sclp_config.c index 7c9b39cee595..fff4ff485d9b 100644 --- a/drivers/s390/char/sclp_config.c +++ b/drivers/s390/char/sclp_config.c | |||
@@ -85,10 +85,8 @@ static int __init sclp_conf_init(void) | |||
85 | INIT_WORK(&sclp_cpu_change_work, sclp_cpu_change_notify); | 85 | INIT_WORK(&sclp_cpu_change_work, sclp_cpu_change_notify); |
86 | 86 | ||
87 | rc = sclp_register(&sclp_conf_register); | 87 | rc = sclp_register(&sclp_conf_register); |
88 | if (rc) { | 88 | if (rc) |
89 | printk(KERN_ERR TAG "failed to register (%d).\n", rc); | ||
90 | return rc; | 89 | return rc; |
91 | } | ||
92 | 90 | ||
93 | if (!(sclp_conf_register.sclp_send_mask & EVTYP_CONFMGMDATA_MASK)) { | 91 | if (!(sclp_conf_register.sclp_send_mask & EVTYP_CONFMGMDATA_MASK)) { |
94 | printk(KERN_WARNING TAG "no configuration management.\n"); | 92 | printk(KERN_WARNING TAG "no configuration management.\n"); |
diff --git a/drivers/s390/char/sclp_cpi_sys.c b/drivers/s390/char/sclp_cpi_sys.c index 005f330ed926..d887bd261d28 100644 --- a/drivers/s390/char/sclp_cpi_sys.c +++ b/drivers/s390/char/sclp_cpi_sys.c | |||
@@ -126,21 +126,15 @@ static int cpi_req(void) | |||
126 | int response; | 126 | int response; |
127 | 127 | ||
128 | rc = sclp_register(&sclp_cpi_event); | 128 | rc = sclp_register(&sclp_cpi_event); |
129 | if (rc) { | 129 | if (rc) |
130 | printk(KERN_WARNING "cpi: could not register " | ||
131 | "to hardware console.\n"); | ||
132 | goto out; | 130 | goto out; |
133 | } | ||
134 | if (!(sclp_cpi_event.sclp_receive_mask & EVTYP_CTLPROGIDENT_MASK)) { | 131 | if (!(sclp_cpi_event.sclp_receive_mask & EVTYP_CTLPROGIDENT_MASK)) { |
135 | printk(KERN_WARNING "cpi: no control program " | ||
136 | "identification support\n"); | ||
137 | rc = -EOPNOTSUPP; | 132 | rc = -EOPNOTSUPP; |
138 | goto out_unregister; | 133 | goto out_unregister; |
139 | } | 134 | } |
140 | 135 | ||
141 | req = cpi_prepare_req(); | 136 | req = cpi_prepare_req(); |
142 | if (IS_ERR(req)) { | 137 | if (IS_ERR(req)) { |
143 | printk(KERN_WARNING "cpi: could not allocate request\n"); | ||
144 | rc = PTR_ERR(req); | 138 | rc = PTR_ERR(req); |
145 | goto out_unregister; | 139 | goto out_unregister; |
146 | } | 140 | } |
@@ -150,10 +144,8 @@ static int cpi_req(void) | |||
150 | 144 | ||
151 | /* Add request to sclp queue */ | 145 | /* Add request to sclp queue */ |
152 | rc = sclp_add_request(req); | 146 | rc = sclp_add_request(req); |
153 | if (rc) { | 147 | if (rc) |
154 | printk(KERN_WARNING "cpi: could not start request\n"); | ||
155 | goto out_free_req; | 148 | goto out_free_req; |
156 | } | ||
157 | 149 | ||
158 | wait_for_completion(&completion); | 150 | wait_for_completion(&completion); |
159 | 151 | ||
diff --git a/drivers/s390/char/sclp_quiesce.c b/drivers/s390/char/sclp_quiesce.c index 45ff25e787cb..84c191c1cd62 100644 --- a/drivers/s390/char/sclp_quiesce.c +++ b/drivers/s390/char/sclp_quiesce.c | |||
@@ -51,13 +51,7 @@ static struct sclp_register sclp_quiesce_event = { | |||
51 | static int __init | 51 | static int __init |
52 | sclp_quiesce_init(void) | 52 | sclp_quiesce_init(void) |
53 | { | 53 | { |
54 | int rc; | 54 | return sclp_register(&sclp_quiesce_event); |
55 | |||
56 | rc = sclp_register(&sclp_quiesce_event); | ||
57 | if (rc) | ||
58 | printk(KERN_WARNING "sclp: could not register quiesce handler " | ||
59 | "(rc=%d)\n", rc); | ||
60 | return rc; | ||
61 | } | 55 | } |
62 | 56 | ||
63 | module_init(sclp_quiesce_init); | 57 | module_init(sclp_quiesce_init); |
diff --git a/drivers/s390/char/sclp_rw.c b/drivers/s390/char/sclp_rw.c index da09781b32f7..710af42603f8 100644 --- a/drivers/s390/char/sclp_rw.c +++ b/drivers/s390/char/sclp_rw.c | |||
@@ -19,8 +19,6 @@ | |||
19 | #include "sclp.h" | 19 | #include "sclp.h" |
20 | #include "sclp_rw.h" | 20 | #include "sclp_rw.h" |
21 | 21 | ||
22 | #define SCLP_RW_PRINT_HEADER "sclp low level driver: " | ||
23 | |||
24 | /* | 22 | /* |
25 | * The room for the SCCB (only for writing) is not equal to a pages size | 23 | * The room for the SCCB (only for writing) is not equal to a pages size |
26 | * (as it is specified as the maximum size in the SCLP documentation) | 24 | * (as it is specified as the maximum size in the SCLP documentation) |
diff --git a/drivers/s390/char/sclp_sdias.c b/drivers/s390/char/sclp_sdias.c index 1c064976b32b..8b854857ba07 100644 --- a/drivers/s390/char/sclp_sdias.c +++ b/drivers/s390/char/sclp_sdias.c | |||
@@ -239,10 +239,8 @@ int __init sclp_sdias_init(void) | |||
239 | debug_register_view(sdias_dbf, &debug_sprintf_view); | 239 | debug_register_view(sdias_dbf, &debug_sprintf_view); |
240 | debug_set_level(sdias_dbf, 6); | 240 | debug_set_level(sdias_dbf, 6); |
241 | rc = sclp_register(&sclp_sdias_register); | 241 | rc = sclp_register(&sclp_sdias_register); |
242 | if (rc) { | 242 | if (rc) |
243 | ERROR_MSG("sclp register failed\n"); | ||
244 | return rc; | 243 | return rc; |
245 | } | ||
246 | init_waitqueue_head(&sdias_wq); | 244 | init_waitqueue_head(&sdias_wq); |
247 | TRACE("init done\n"); | 245 | TRACE("init done\n"); |
248 | return 0; | 246 | return 0; |
diff --git a/drivers/s390/char/sclp_tty.c b/drivers/s390/char/sclp_tty.c index 40b11521cd20..d3b1957cd2f3 100644 --- a/drivers/s390/char/sclp_tty.c +++ b/drivers/s390/char/sclp_tty.c | |||
@@ -25,8 +25,6 @@ | |||
25 | #include "sclp_rw.h" | 25 | #include "sclp_rw.h" |
26 | #include "sclp_tty.h" | 26 | #include "sclp_tty.h" |
27 | 27 | ||
28 | #define SCLP_TTY_PRINT_HEADER "sclp tty driver: " | ||
29 | |||
30 | /* | 28 | /* |
31 | * size of a buffer that collects single characters coming in | 29 | * size of a buffer that collects single characters coming in |
32 | * via sclp_tty_put_char() | 30 | * via sclp_tty_put_char() |
@@ -736,9 +734,6 @@ sclp_tty_init(void) | |||
736 | 734 | ||
737 | rc = sclp_rw_init(); | 735 | rc = sclp_rw_init(); |
738 | if (rc) { | 736 | if (rc) { |
739 | printk(KERN_ERR SCLP_TTY_PRINT_HEADER | ||
740 | "could not register tty - " | ||
741 | "sclp_rw_init returned %d\n", rc); | ||
742 | put_tty_driver(driver); | 737 | put_tty_driver(driver); |
743 | return rc; | 738 | return rc; |
744 | } | 739 | } |
@@ -792,9 +787,6 @@ sclp_tty_init(void) | |||
792 | tty_set_operations(driver, &sclp_ops); | 787 | tty_set_operations(driver, &sclp_ops); |
793 | rc = tty_register_driver(driver); | 788 | rc = tty_register_driver(driver); |
794 | if (rc) { | 789 | if (rc) { |
795 | printk(KERN_ERR SCLP_TTY_PRINT_HEADER | ||
796 | "could not register tty - " | ||
797 | "tty_register_driver returned %d\n", rc); | ||
798 | put_tty_driver(driver); | 790 | put_tty_driver(driver); |
799 | return rc; | 791 | return rc; |
800 | } | 792 | } |
diff --git a/drivers/s390/char/sclp_vt220.c b/drivers/s390/char/sclp_vt220.c index baea4d548523..ad51738c4261 100644 --- a/drivers/s390/char/sclp_vt220.c +++ b/drivers/s390/char/sclp_vt220.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <asm/uaccess.h> | 27 | #include <asm/uaccess.h> |
28 | #include "sclp.h" | 28 | #include "sclp.h" |
29 | 29 | ||
30 | #define SCLP_VT220_PRINT_HEADER "sclp vt220 tty driver: " | ||
31 | #define SCLP_VT220_MAJOR TTY_MAJOR | 30 | #define SCLP_VT220_MAJOR TTY_MAJOR |
32 | #define SCLP_VT220_MINOR 65 | 31 | #define SCLP_VT220_MINOR 65 |
33 | #define SCLP_VT220_DRIVER_NAME "sclp_vt220" | 32 | #define SCLP_VT220_DRIVER_NAME "sclp_vt220" |
@@ -716,12 +715,8 @@ static int __init sclp_vt220_tty_init(void) | |||
716 | tty_set_operations(driver, &sclp_vt220_ops); | 715 | tty_set_operations(driver, &sclp_vt220_ops); |
717 | 716 | ||
718 | rc = tty_register_driver(driver); | 717 | rc = tty_register_driver(driver); |
719 | if (rc) { | 718 | if (rc) |
720 | printk(KERN_ERR SCLP_VT220_PRINT_HEADER | ||
721 | "could not register tty - " | ||
722 | "tty_register_driver returned %d\n", rc); | ||
723 | goto out_init; | 719 | goto out_init; |
724 | } | ||
725 | sclp_vt220_driver = driver; | 720 | sclp_vt220_driver = driver; |
726 | return 0; | 721 | return 0; |
727 | 722 | ||