diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-12-25 07:39:48 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-12-25 07:39:24 -0500 |
commit | b3ff088b3025c3583194edd7576215b61333111f (patch) | |
tree | 125e2a3dbf22ac597ff4cb10573c0cb6d7aed41c /drivers/s390/char/sclp_cpi_sys.c | |
parent | 8f7c502c267c0e5e2dbbbdea9f3e7e85bbc95694 (diff) |
[S390] convert sclp printks to pr_xxx macros.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char/sclp_cpi_sys.c')
-rw-r--r-- | drivers/s390/char/sclp_cpi_sys.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/s390/char/sclp_cpi_sys.c b/drivers/s390/char/sclp_cpi_sys.c index d887bd261d28..62c2647f37f4 100644 --- a/drivers/s390/char/sclp_cpi_sys.c +++ b/drivers/s390/char/sclp_cpi_sys.c | |||
@@ -7,6 +7,9 @@ | |||
7 | * Michael Ernst <mernst@de.ibm.com> | 7 | * Michael Ernst <mernst@de.ibm.com> |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #define KMSG_COMPONENT "sclp_cpi" | ||
11 | #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt | ||
12 | |||
10 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
11 | #include <linux/init.h> | 14 | #include <linux/init.h> |
12 | #include <linux/stat.h> | 15 | #include <linux/stat.h> |
@@ -20,6 +23,7 @@ | |||
20 | #include <linux/completion.h> | 23 | #include <linux/completion.h> |
21 | #include <asm/ebcdic.h> | 24 | #include <asm/ebcdic.h> |
22 | #include <asm/sclp.h> | 25 | #include <asm/sclp.h> |
26 | |||
23 | #include "sclp.h" | 27 | #include "sclp.h" |
24 | #include "sclp_rw.h" | 28 | #include "sclp_rw.h" |
25 | #include "sclp_cpi_sys.h" | 29 | #include "sclp_cpi_sys.h" |
@@ -150,16 +154,16 @@ static int cpi_req(void) | |||
150 | wait_for_completion(&completion); | 154 | wait_for_completion(&completion); |
151 | 155 | ||
152 | if (req->status != SCLP_REQ_DONE) { | 156 | if (req->status != SCLP_REQ_DONE) { |
153 | printk(KERN_WARNING "cpi: request failed (status=0x%02x)\n", | 157 | pr_warning("request failed (status=0x%02x)\n", |
154 | req->status); | 158 | req->status); |
155 | rc = -EIO; | 159 | rc = -EIO; |
156 | goto out_free_req; | 160 | goto out_free_req; |
157 | } | 161 | } |
158 | 162 | ||
159 | response = ((struct cpi_sccb *) req->sccb)->header.response_code; | 163 | response = ((struct cpi_sccb *) req->sccb)->header.response_code; |
160 | if (response != 0x0020) { | 164 | if (response != 0x0020) { |
161 | printk(KERN_WARNING "cpi: failed with " | 165 | pr_warning("request failed with response code 0x%x\n", |
162 | "response code 0x%x\n", response); | 166 | response); |
163 | rc = -EIO; | 167 | rc = -EIO; |
164 | } | 168 | } |
165 | 169 | ||