Skip to content

Commit

Permalink
[S390] convert ap_bus printks to pr_xxx macros.
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Martin Schwidefsky committed Dec 25, 2008
1 parent 93098bf commit 136f7a1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions drivers/s390/crypto/ap_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#define KMSG_COMPONENT "ap"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt

#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
Expand Down Expand Up @@ -1487,12 +1490,13 @@ int __init ap_module_init(void)
int rc, i;

if (ap_domain_index < -1 || ap_domain_index >= AP_DOMAINS) {
printk(KERN_WARNING "Invalid param: domain = %d. "
" Not loading.\n", ap_domain_index);
pr_warning("%d is not a valid cryptographic domain\n",
ap_domain_index);
return -EINVAL;
}
if (ap_instructions_available() != 0) {
printk(KERN_WARNING "AP instructions not installed.\n");
pr_warning("The hardware system does not support "
"AP instructions\n");
return -ENODEV;
}
if (ap_interrupts_available()) {
Expand Down

0 comments on commit 136f7a1

Please sign in to comment.