Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
5466c2e4
Commit
5466c2e4
authored
Dec 25, 2008
by
Martin Schwidefsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[S390] convert vmlogrdr printks to pr_xxx macros.
Signed-off-by:
Martin Schwidefsky
<
schwidefsky@de.ibm.com
>
parent
17159dc6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
drivers/s390/char/vmlogrdr.c
drivers/s390/char/vmlogrdr.c
+13
-13
No files found.
drivers/s390/char/vmlogrdr.c
View file @
5466c2e4
...
@@ -10,6 +10,10 @@
...
@@ -10,6 +10,10 @@
* Stefan Weinhuber <wein@de.ibm.com>
* Stefan Weinhuber <wein@de.ibm.com>
*
*
*/
*/
#define KMSG_COMPONENT "vmlogrdr"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#include <linux/module.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/errno.h>
...
@@ -28,8 +32,6 @@
...
@@ -28,8 +32,6 @@
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>
#include <linux/string.h>
#include <linux/string.h>
MODULE_AUTHOR
MODULE_AUTHOR
(
"(C) 2004 IBM Corporation by Xenia Tkatschow (xenia@us.ibm.com)
\n
"
(
"(C) 2004 IBM Corporation by Xenia Tkatschow (xenia@us.ibm.com)
\n
"
" Stefan Weinhuber (wein@de.ibm.com)"
);
" Stefan Weinhuber (wein@de.ibm.com)"
);
...
@@ -174,8 +176,7 @@ static void vmlogrdr_iucv_path_severed(struct iucv_path *path, u8 ipuser[16])
...
@@ -174,8 +176,7 @@ static void vmlogrdr_iucv_path_severed(struct iucv_path *path, u8 ipuser[16])
struct
vmlogrdr_priv_t
*
logptr
=
path
->
private
;
struct
vmlogrdr_priv_t
*
logptr
=
path
->
private
;
u8
reason
=
(
u8
)
ipuser
[
8
];
u8
reason
=
(
u8
)
ipuser
[
8
];
printk
(
KERN_ERR
"vmlogrdr: connection severed with"
pr_err
(
"vmlogrdr: connection severed with reason %i
\n
"
,
reason
);
" reason %i
\n
"
,
reason
);
iucv_path_sever
(
path
,
NULL
);
iucv_path_sever
(
path
,
NULL
);
kfree
(
path
);
kfree
(
path
);
...
@@ -333,7 +334,7 @@ static int vmlogrdr_open (struct inode *inode, struct file *filp)
...
@@ -333,7 +334,7 @@ static int vmlogrdr_open (struct inode *inode, struct file *filp)
if
(
logptr
->
autorecording
)
{
if
(
logptr
->
autorecording
)
{
ret
=
vmlogrdr_recording
(
logptr
,
1
,
logptr
->
autopurge
);
ret
=
vmlogrdr_recording
(
logptr
,
1
,
logptr
->
autopurge
);
if
(
ret
)
if
(
ret
)
pr
intk
(
KERN_WARNING
"vmlogrdr: failed to start "
pr
_warning
(
"vmlogrdr: failed to start "
"recording automatically
\n
"
);
"recording automatically
\n
"
);
}
}
...
@@ -345,9 +346,9 @@ static int vmlogrdr_open (struct inode *inode, struct file *filp)
...
@@ -345,9 +346,9 @@ static int vmlogrdr_open (struct inode *inode, struct file *filp)
logptr
->
system_service
,
NULL
,
NULL
,
logptr
->
system_service
,
NULL
,
NULL
,
logptr
);
logptr
);
if
(
connect_rc
)
{
if
(
connect_rc
)
{
pr
intk
(
KERN_ERR
"vmlogrdr: iucv connection to %s "
pr
_err
(
"vmlogrdr: iucv connection to %s "
"failed with rc %i
\n
"
,
logptr
->
system_service
,
"failed with rc %i
\n
"
,
connect_rc
);
logptr
->
system_service
,
connect_rc
);
goto
out_path
;
goto
out_path
;
}
}
...
@@ -388,7 +389,7 @@ static int vmlogrdr_release (struct inode *inode, struct file *filp)
...
@@ -388,7 +389,7 @@ static int vmlogrdr_release (struct inode *inode, struct file *filp)
if
(
logptr
->
autorecording
)
{
if
(
logptr
->
autorecording
)
{
ret
=
vmlogrdr_recording
(
logptr
,
0
,
logptr
->
autopurge
);
ret
=
vmlogrdr_recording
(
logptr
,
0
,
logptr
->
autopurge
);
if
(
ret
)
if
(
ret
)
pr
intk
(
KERN_WARNING
"vmlogrdr: failed to stop "
pr
_warning
(
"vmlogrdr: failed to stop "
"recording automatically
\n
"
);
"recording automatically
\n
"
);
}
}
logptr
->
dev_in_use
=
0
;
logptr
->
dev_in_use
=
0
;
...
@@ -823,8 +824,7 @@ static int __init vmlogrdr_init(void)
...
@@ -823,8 +824,7 @@ static int __init vmlogrdr_init(void)
dev_t
dev
;
dev_t
dev
;
if
(
!
MACHINE_IS_VM
)
{
if
(
!
MACHINE_IS_VM
)
{
printk
(
KERN_ERR
"vmlogrdr: not running under VM, "
pr_err
(
"not running under VM, driver not loaded.
\n
"
);
"driver not loaded.
\n
"
);
return
-
ENODEV
;
return
-
ENODEV
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment