提交 a12c53f4 编写于 作者: M Martin Schwidefsky 提交者: Heiko Carstens

[S390] Cleanup sclp printk messages.

Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
上级 1a89dd8f
...@@ -784,11 +784,9 @@ sclp_check_handler(__u16 code) ...@@ -784,11 +784,9 @@ sclp_check_handler(__u16 code)
/* Is this the interrupt we are waiting for? */ /* Is this the interrupt we are waiting for? */
if (finished_sccb == 0) if (finished_sccb == 0)
return; return;
if (finished_sccb != (u32) (addr_t) sclp_init_sccb) { if (finished_sccb != (u32) (addr_t) sclp_init_sccb)
printk(KERN_WARNING SCLP_HEADER "unsolicited interrupt " panic("sclp: unsolicited interrupt for buffer at 0x%x\n",
"for buffer at 0x%x\n", finished_sccb); finished_sccb);
return;
}
spin_lock(&sclp_lock); spin_lock(&sclp_lock);
if (sclp_running_state == sclp_running_state_running) { if (sclp_running_state == sclp_running_state_running) {
sclp_init_req.status = SCLP_REQ_DONE; sclp_init_req.status = SCLP_REQ_DONE;
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include "sclp_rw.h" #include "sclp_rw.h"
#include "sclp_tty.h" #include "sclp_tty.h"
#define SCLP_CON_PRINT_HEADER "sclp console driver: "
#define sclp_console_major 4 /* TTYAUX_MAJOR */ #define sclp_console_major 4 /* TTYAUX_MAJOR */
#define sclp_console_minor 64 #define sclp_console_minor 64
#define sclp_console_name "ttyS" #define sclp_console_name "ttyS"
......
...@@ -85,10 +85,8 @@ static int __init sclp_conf_init(void) ...@@ -85,10 +85,8 @@ static int __init sclp_conf_init(void)
INIT_WORK(&sclp_cpu_change_work, sclp_cpu_change_notify); INIT_WORK(&sclp_cpu_change_work, sclp_cpu_change_notify);
rc = sclp_register(&sclp_conf_register); rc = sclp_register(&sclp_conf_register);
if (rc) { if (rc)
printk(KERN_ERR TAG "failed to register (%d).\n", rc);
return rc; return rc;
}
if (!(sclp_conf_register.sclp_send_mask & EVTYP_CONFMGMDATA_MASK)) { if (!(sclp_conf_register.sclp_send_mask & EVTYP_CONFMGMDATA_MASK)) {
printk(KERN_WARNING TAG "no configuration management.\n"); printk(KERN_WARNING TAG "no configuration management.\n");
......
...@@ -126,21 +126,15 @@ static int cpi_req(void) ...@@ -126,21 +126,15 @@ static int cpi_req(void)
int response; int response;
rc = sclp_register(&sclp_cpi_event); rc = sclp_register(&sclp_cpi_event);
if (rc) { if (rc)
printk(KERN_WARNING "cpi: could not register "
"to hardware console.\n");
goto out; goto out;
}
if (!(sclp_cpi_event.sclp_receive_mask & EVTYP_CTLPROGIDENT_MASK)) { if (!(sclp_cpi_event.sclp_receive_mask & EVTYP_CTLPROGIDENT_MASK)) {
printk(KERN_WARNING "cpi: no control program "
"identification support\n");
rc = -EOPNOTSUPP; rc = -EOPNOTSUPP;
goto out_unregister; goto out_unregister;
} }
req = cpi_prepare_req(); req = cpi_prepare_req();
if (IS_ERR(req)) { if (IS_ERR(req)) {
printk(KERN_WARNING "cpi: could not allocate request\n");
rc = PTR_ERR(req); rc = PTR_ERR(req);
goto out_unregister; goto out_unregister;
} }
...@@ -150,10 +144,8 @@ static int cpi_req(void) ...@@ -150,10 +144,8 @@ static int cpi_req(void)
/* Add request to sclp queue */ /* Add request to sclp queue */
rc = sclp_add_request(req); rc = sclp_add_request(req);
if (rc) { if (rc)
printk(KERN_WARNING "cpi: could not start request\n");
goto out_free_req; goto out_free_req;
}
wait_for_completion(&completion); wait_for_completion(&completion);
......
...@@ -51,13 +51,7 @@ static struct sclp_register sclp_quiesce_event = { ...@@ -51,13 +51,7 @@ static struct sclp_register sclp_quiesce_event = {
static int __init static int __init
sclp_quiesce_init(void) sclp_quiesce_init(void)
{ {
int rc; return sclp_register(&sclp_quiesce_event);
rc = sclp_register(&sclp_quiesce_event);
if (rc)
printk(KERN_WARNING "sclp: could not register quiesce handler "
"(rc=%d)\n", rc);
return rc;
} }
module_init(sclp_quiesce_init); module_init(sclp_quiesce_init);
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
#include "sclp.h" #include "sclp.h"
#include "sclp_rw.h" #include "sclp_rw.h"
#define SCLP_RW_PRINT_HEADER "sclp low level driver: "
/* /*
* The room for the SCCB (only for writing) is not equal to a pages size * The room for the SCCB (only for writing) is not equal to a pages size
* (as it is specified as the maximum size in the SCLP documentation) * (as it is specified as the maximum size in the SCLP documentation)
......
...@@ -239,10 +239,8 @@ int __init sclp_sdias_init(void) ...@@ -239,10 +239,8 @@ int __init sclp_sdias_init(void)
debug_register_view(sdias_dbf, &debug_sprintf_view); debug_register_view(sdias_dbf, &debug_sprintf_view);
debug_set_level(sdias_dbf, 6); debug_set_level(sdias_dbf, 6);
rc = sclp_register(&sclp_sdias_register); rc = sclp_register(&sclp_sdias_register);
if (rc) { if (rc)
ERROR_MSG("sclp register failed\n");
return rc; return rc;
}
init_waitqueue_head(&sdias_wq); init_waitqueue_head(&sdias_wq);
TRACE("init done\n"); TRACE("init done\n");
return 0; return 0;
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#include "sclp_rw.h" #include "sclp_rw.h"
#include "sclp_tty.h" #include "sclp_tty.h"
#define SCLP_TTY_PRINT_HEADER "sclp tty driver: "
/* /*
* size of a buffer that collects single characters coming in * size of a buffer that collects single characters coming in
* via sclp_tty_put_char() * via sclp_tty_put_char()
...@@ -736,9 +734,6 @@ sclp_tty_init(void) ...@@ -736,9 +734,6 @@ sclp_tty_init(void)
rc = sclp_rw_init(); rc = sclp_rw_init();
if (rc) { if (rc) {
printk(KERN_ERR SCLP_TTY_PRINT_HEADER
"could not register tty - "
"sclp_rw_init returned %d\n", rc);
put_tty_driver(driver); put_tty_driver(driver);
return rc; return rc;
} }
...@@ -792,9 +787,6 @@ sclp_tty_init(void) ...@@ -792,9 +787,6 @@ sclp_tty_init(void)
tty_set_operations(driver, &sclp_ops); tty_set_operations(driver, &sclp_ops);
rc = tty_register_driver(driver); rc = tty_register_driver(driver);
if (rc) { if (rc) {
printk(KERN_ERR SCLP_TTY_PRINT_HEADER
"could not register tty - "
"tty_register_driver returned %d\n", rc);
put_tty_driver(driver); put_tty_driver(driver);
return rc; return rc;
} }
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include "sclp.h" #include "sclp.h"
#define SCLP_VT220_PRINT_HEADER "sclp vt220 tty driver: "
#define SCLP_VT220_MAJOR TTY_MAJOR #define SCLP_VT220_MAJOR TTY_MAJOR
#define SCLP_VT220_MINOR 65 #define SCLP_VT220_MINOR 65
#define SCLP_VT220_DRIVER_NAME "sclp_vt220" #define SCLP_VT220_DRIVER_NAME "sclp_vt220"
...@@ -716,12 +715,8 @@ static int __init sclp_vt220_tty_init(void) ...@@ -716,12 +715,8 @@ static int __init sclp_vt220_tty_init(void)
tty_set_operations(driver, &sclp_vt220_ops); tty_set_operations(driver, &sclp_vt220_ops);
rc = tty_register_driver(driver); rc = tty_register_driver(driver);
if (rc) { if (rc)
printk(KERN_ERR SCLP_VT220_PRINT_HEADER
"could not register tty - "
"tty_register_driver returned %d\n", rc);
goto out_init; goto out_init;
}
sclp_vt220_driver = driver; sclp_vt220_driver = driver;
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册