Skip to content

Commit

Permalink
[S390] hvc_iucv: Update and add missing kernel messages
Browse files Browse the repository at this point in the history
If the hvc_iucv= kernel parameter specifies a value that is not
valid, display an error message.
Minor changes to existing kernel messages.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Hendrik Brueckner authored and Martin Schwidefsky committed Mar 26, 2009
1 parent 5168ce2 commit 82f3a79
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/char/hvc_iucv.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,16 +885,19 @@ static int __init hvc_iucv_init(void)
unsigned int i;

if (!MACHINE_IS_VM) {
pr_info("The z/VM IUCV HVC device driver cannot "
pr_notice("The z/VM IUCV HVC device driver cannot "
"be used without z/VM\n");
return -ENODEV;
}

if (!hvc_iucv_devices)
return -ENODEV;

if (hvc_iucv_devices > MAX_HVC_IUCV_LINES)
if (hvc_iucv_devices > MAX_HVC_IUCV_LINES) {
pr_err("%lu is not a valid value for the hvc_iucv= "
"kernel parameter\n", hvc_iucv_devices);
return -EINVAL;
}

hvc_iucv_buffer_cache = kmem_cache_create(KMSG_COMPONENT,
sizeof(struct iucv_tty_buffer),
Expand Down

0 comments on commit 82f3a79

Please sign in to comment.