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
Kirill Smelkov
linux
Commits
d0a14a9d
Commit
d0a14a9d
authored
Jan 11, 2006
by
Per Liden
Committed by
David S. Miller
Jan 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TIPC] Cleaned up info/warn/err macros
Signed-off-by:
Per Liden
<
per.liden@nospam.ericsson.com
>
parent
9ea1fd3c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
net/tipc/core.h
net/tipc/core.h
+3
-3
net/tipc/netlink.c
net/tipc/netlink.c
+1
-1
net/tipc/socket.c
net/tipc/socket.c
+2
-2
net/tipc/subscr.c
net/tipc/subscr.c
+1
-1
No files found.
net/tipc/core.h
View file @
d0a14a9d
...
@@ -117,9 +117,9 @@ void tipc_dump(struct print_buf*,const char *fmt, ...);
...
@@ -117,9 +117,9 @@ void tipc_dump(struct print_buf*,const char *fmt, ...);
* - debug messages are not printed
* - debug messages are not printed
*/
*/
#define err(fmt, arg...) printk(KERN_ERR "
%s: " fmt "\n" , __FILE__
, ## arg)
#define err(fmt, arg...) printk(KERN_ERR "
TIPC: " fmt
, ## arg)
#define info(fmt, arg...) printk(KERN_INFO "
%s: " fmt "\n" , __FILE__
, ## arg)
#define info(fmt, arg...) printk(KERN_INFO "
TIPC: " fmt
, ## arg)
#define warn(fmt, arg...) printk(KERN_WARNING "
%s: " fmt "\n" , __FILE__
, ## arg)
#define warn(fmt, arg...) printk(KERN_WARNING "
TIPC: " fmt
, ## arg)
#define dbg(fmt, arg...) do {} while (0)
#define dbg(fmt, arg...) do {} while (0)
#define msg_dbg(msg,txt) do {} while (0)
#define msg_dbg(msg,txt) do {} while (0)
...
...
net/tipc/netlink.c
View file @
d0a14a9d
...
@@ -100,7 +100,7 @@ int netlink_start(void)
...
@@ -100,7 +100,7 @@ int netlink_start(void)
genl_unregister_family
(
&
family
);
genl_unregister_family
(
&
family
);
family_registered
=
0
;
family_registered
=
0
;
err:
err:
err
(
"Failed to register netlink interface"
);
err
(
"Failed to register netlink interface
\n
"
);
return
-
EFAULT
;
return
-
EFAULT
;
}
}
...
...
net/tipc/socket.c
View file @
d0a14a9d
...
@@ -1696,13 +1696,13 @@ int socket_init(void)
...
@@ -1696,13 +1696,13 @@ int socket_init(void)
res
=
proto_register
(
&
tipc_proto
,
1
);
res
=
proto_register
(
&
tipc_proto
,
1
);
if
(
res
)
{
if
(
res
)
{
err
(
"
Unable
to register TIPC protocol type
\n
"
);
err
(
"
Failed
to register TIPC protocol type
\n
"
);
goto
out
;
goto
out
;
}
}
res
=
sock_register
(
&
tipc_family_ops
);
res
=
sock_register
(
&
tipc_family_ops
);
if
(
res
)
{
if
(
res
)
{
err
(
"
Unable
to register TIPC socket type
\n
"
);
err
(
"
Failed
to register TIPC socket type
\n
"
);
proto_unregister
(
&
tipc_proto
);
proto_unregister
(
&
tipc_proto
);
goto
out
;
goto
out
;
}
}
...
...
net/tipc/subscr.c
View file @
d0a14a9d
...
@@ -488,7 +488,7 @@ int subscr_start(void)
...
@@ -488,7 +488,7 @@ int subscr_start(void)
return
0
;
return
0
;
failed:
failed:
err
(
"
Unable
to create subscription service
\n
"
);
err
(
"
Failed
to create subscription service
\n
"
);
tipc_detach
(
topsrv
.
user_ref
);
tipc_detach
(
topsrv
.
user_ref
);
topsrv
.
user_ref
=
0
;
topsrv
.
user_ref
=
0
;
spin_unlock_bh
(
&
topsrv
.
lock
);
spin_unlock_bh
(
&
topsrv
.
lock
);
...
...
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