]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/s390/kernel/cpcmd.c
crypto: compress - Return produced bytes in crypto_{,de}compress_{update,final}
[karo-tx-linux.git] / arch / s390 / kernel / cpcmd.c
index d8c1131e081568927e7f4460aa4febd912c869bf..3e8b8816f309937c6ac5b2af395c346f98e19bb2 100644 (file)
@@ -7,6 +7,9 @@
  *               Christian Borntraeger (cborntra@de.ibm.com),
  */
 
+#define KMSG_COMPONENT "cpcmd"
+#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
+
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
@@ -104,8 +107,8 @@ int cpcmd(const char *cmd, char *response, int rlen, int *response_code)
                        (((unsigned long)response + rlen) >> 31)) {
                lowbuf = kmalloc(rlen, GFP_KERNEL | GFP_DMA);
                if (!lowbuf) {
-                       printk(KERN_WARNING
-                               "cpcmd: could not allocate response buffer\n");
+                       pr_warning("The cpcmd kernel function failed to "
+                                  "allocate a response buffer\n");
                        return -ENOMEM;
                }
                spin_lock_irqsave(&cpcmd_lock, flags);