Commit 2f6f2521 authored by Martin Schwidefsky's avatar Martin Schwidefsky Committed by Heiko Carstens

[S390] Cleanup vmlogrdr printk messages.

The message descriptions are still missing though ..
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
parent 21b21fc4
...@@ -216,9 +216,7 @@ static int vmlogrdr_get_recording_class_AB(void) ...@@ -216,9 +216,7 @@ static int vmlogrdr_get_recording_class_AB(void)
char *tail; char *tail;
int len,i; int len,i;
printk (KERN_DEBUG "vmlogrdr: query command: %s\n", cp_command);
cpcmd(cp_command, cp_response, sizeof(cp_response), NULL); cpcmd(cp_command, cp_response, sizeof(cp_response), NULL);
printk (KERN_DEBUG "vmlogrdr: response: %s", cp_response);
len = strnlen(cp_response,sizeof(cp_response)); len = strnlen(cp_response,sizeof(cp_response));
// now the parsing // now the parsing
tail=strnchr(cp_response,len,'='); tail=strnchr(cp_response,len,'=');
...@@ -268,11 +266,7 @@ static int vmlogrdr_recording(struct vmlogrdr_priv_t * logptr, ...@@ -268,11 +266,7 @@ static int vmlogrdr_recording(struct vmlogrdr_priv_t * logptr,
logptr->recording_name, logptr->recording_name,
qid_string); qid_string);
printk (KERN_DEBUG "vmlogrdr: recording command: %s\n",
cp_command);
cpcmd(cp_command, cp_response, sizeof(cp_response), NULL); cpcmd(cp_command, cp_response, sizeof(cp_response), NULL);
printk (KERN_DEBUG "vmlogrdr: recording response: %s",
cp_response);
} }
memset(cp_command, 0x00, sizeof(cp_command)); memset(cp_command, 0x00, sizeof(cp_command));
...@@ -282,10 +276,7 @@ static int vmlogrdr_recording(struct vmlogrdr_priv_t * logptr, ...@@ -282,10 +276,7 @@ static int vmlogrdr_recording(struct vmlogrdr_priv_t * logptr,
onoff, onoff,
qid_string); qid_string);
printk (KERN_DEBUG "vmlogrdr: recording command: %s\n", cp_command);
cpcmd(cp_command, cp_response, sizeof(cp_response), NULL); cpcmd(cp_command, cp_response, sizeof(cp_response), NULL);
printk (KERN_DEBUG "vmlogrdr: recording response: %s",
cp_response);
/* The recording command will usually answer with 'Command complete' /* The recording command will usually answer with 'Command complete'
* on success, but when the specific service was never connected * on success, but when the specific service was never connected
* before then there might be an additional informational message * before then there might be an additional informational message
...@@ -567,10 +558,7 @@ static ssize_t vmlogrdr_purge_store(struct device * dev, ...@@ -567,10 +558,7 @@ static ssize_t vmlogrdr_purge_store(struct device * dev,
"RECORDING %s PURGE ", "RECORDING %s PURGE ",
priv->recording_name); priv->recording_name);
printk (KERN_DEBUG "vmlogrdr: recording command: %s\n", cp_command);
cpcmd(cp_command, cp_response, sizeof(cp_response), NULL); cpcmd(cp_command, cp_response, sizeof(cp_response), NULL);
printk (KERN_DEBUG "vmlogrdr: recording response: %s",
cp_response);
return count; return count;
} }
...@@ -682,28 +670,20 @@ static int vmlogrdr_register_driver(void) ...@@ -682,28 +670,20 @@ static int vmlogrdr_register_driver(void)
/* Register with iucv driver */ /* Register with iucv driver */
ret = iucv_register(&vmlogrdr_iucv_handler, 1); ret = iucv_register(&vmlogrdr_iucv_handler, 1);
if (ret) { if (ret)
printk (KERN_ERR "vmlogrdr: failed to register with "
"iucv driver\n");
goto out; goto out;
}
ret = driver_register(&vmlogrdr_driver); ret = driver_register(&vmlogrdr_driver);
if (ret) { if (ret)
printk(KERN_ERR "vmlogrdr: failed to register driver.\n");
goto out_iucv; goto out_iucv;
}
ret = driver_create_file(&vmlogrdr_driver, ret = driver_create_file(&vmlogrdr_driver,
&driver_attr_recording_status); &driver_attr_recording_status);
if (ret) { if (ret)
printk(KERN_ERR "vmlogrdr: failed to add driver attribute.\n");
goto out_driver; goto out_driver;
}
vmlogrdr_class = class_create(THIS_MODULE, "vmlogrdr"); vmlogrdr_class = class_create(THIS_MODULE, "vmlogrdr");
if (IS_ERR(vmlogrdr_class)) { if (IS_ERR(vmlogrdr_class)) {
printk(KERN_ERR "vmlogrdr: failed to create class.\n");
ret = PTR_ERR(vmlogrdr_class); ret = PTR_ERR(vmlogrdr_class);
vmlogrdr_class = NULL; vmlogrdr_class = NULL;
goto out_attr; goto out_attr;
...@@ -871,12 +851,10 @@ static int __init vmlogrdr_init(void) ...@@ -871,12 +851,10 @@ static int __init vmlogrdr_init(void)
rc = vmlogrdr_register_cdev(dev); rc = vmlogrdr_register_cdev(dev);
if (rc) if (rc)
goto cleanup; goto cleanup;
printk (KERN_INFO "vmlogrdr: driver loaded\n");
return 0; return 0;
cleanup: cleanup:
vmlogrdr_cleanup(); vmlogrdr_cleanup();
printk (KERN_ERR "vmlogrdr: driver not loaded.\n");
return rc; return rc;
} }
...@@ -884,7 +862,6 @@ static int __init vmlogrdr_init(void) ...@@ -884,7 +862,6 @@ static int __init vmlogrdr_init(void)
static void __exit vmlogrdr_exit(void) static void __exit vmlogrdr_exit(void)
{ {
vmlogrdr_cleanup(); vmlogrdr_cleanup();
printk (KERN_INFO "vmlogrdr: driver unloaded\n");
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment