Skip to content

Commit 2f526e5

Browse files
Christian BorntraegerMartin Schwidefsky
authored andcommitted
[S390] convert cpcmd printks to pr_xxx macros.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent c99fc5d commit 2f526e5

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎arch/s390/kernel/cpcmd.c‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
* Christian Borntraeger (cborntra@de.ibm.com),
88
*/
99

10+
#define KMSG_COMPONENT "cpcmd"
11+
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
12+
1013
#include <linux/kernel.h>
1114
#include <linux/module.h>
1215
#include <linux/slab.h>
@@ -104,8 +107,8 @@ int cpcmd(const char *cmd, char *response, int rlen, int *response_code)
104107
(((unsigned long)response + rlen) >> 31)) {
105108
lowbuf = kmalloc(rlen, GFP_KERNEL | GFP_DMA);
106109
if (!lowbuf) {
107-
printk(KERN_WARNING
108-
"cpcmd: could not allocate response buffer\n");
110+
pr_warning("The cpcmd kernel function failed to "
111+
"allocate a response buffer\n");
109112
return -ENOMEM;
110113
}
111114
spin_lock_irqsave(&cpcmd_lock, flags);

0 commit comments

Comments
 (0)