aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorPer Liden <per.liden@nospam.ericsson.com>2006-01-11 07:52:51 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-01-12 17:06:37 -0500
commitd0a14a9dbdf613d9307c4b748b03a11678fe8d16 (patch)
tree35914611062a16e5365e907207824d936830ba4e /net/tipc
parent9ea1fd3c1a15c620d1e3d0aa269d34b705477003 (diff)
[TIPC] Cleaned up info/warn/err macros
Signed-off-by: Per Liden <per.liden@nospam.ericsson.com>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/core.h6
-rw-r--r--net/tipc/netlink.c2
-rw-r--r--net/tipc/socket.c4
-rw-r--r--net/tipc/subscr.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/net/tipc/core.h b/net/tipc/core.h
index 4b29fb63c8fe..4f71fde023e1 100644
--- a/net/tipc/core.h
+++ b/net/tipc/core.h
@@ -117,9 +117,9 @@ void tipc_dump(struct print_buf*,const char *fmt, ...);
117 * - debug messages are not printed 117 * - debug messages are not printed
118 */ 118 */
119 119
120#define err(fmt, arg...) printk(KERN_ERR "%s: " fmt "\n" , __FILE__ , ## arg) 120#define err(fmt, arg...) printk(KERN_ERR "TIPC: " fmt , ## arg)
121#define info(fmt, arg...) printk(KERN_INFO "%s: " fmt "\n" , __FILE__ , ## arg) 121#define info(fmt, arg...) printk(KERN_INFO "TIPC: " fmt , ## arg)
122#define warn(fmt, arg...) printk(KERN_WARNING "%s: " fmt "\n" , __FILE__ , ## arg) 122#define warn(fmt, arg...) printk(KERN_WARNING "TIPC: " fmt , ## arg)
123 123
124#define dbg(fmt, arg...) do {} while (0) 124#define dbg(fmt, arg...) do {} while (0)
125#define msg_dbg(msg,txt) do {} while (0) 125#define msg_dbg(msg,txt) do {} while (0)
diff --git a/net/tipc/netlink.c b/net/tipc/netlink.c
index de3eb45a6683..7b963833964a 100644
--- a/net/tipc/netlink.c
+++ b/net/tipc/netlink.c
@@ -100,7 +100,7 @@ int netlink_start(void)
100 genl_unregister_family(&family); 100 genl_unregister_family(&family);
101 family_registered = 0; 101 family_registered = 0;
102 err: 102 err:
103 err("Failed to register netlink interface"); 103 err("Failed to register netlink interface\n");
104 return -EFAULT; 104 return -EFAULT;
105} 105}
106 106
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index 1120d0340310..e0b429c20baf 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -1696,13 +1696,13 @@ int socket_init(void)
1696 1696
1697 res = proto_register(&tipc_proto, 1); 1697 res = proto_register(&tipc_proto, 1);
1698 if (res) { 1698 if (res) {
1699 err("Unable to register TIPC protocol type\n"); 1699 err("Failed to register TIPC protocol type\n");
1700 goto out; 1700 goto out;
1701 } 1701 }
1702 1702
1703 res = sock_register(&tipc_family_ops); 1703 res = sock_register(&tipc_family_ops);
1704 if (res) { 1704 if (res) {
1705 err("Unable to register TIPC socket type\n"); 1705 err("Failed to register TIPC socket type\n");
1706 proto_unregister(&tipc_proto); 1706 proto_unregister(&tipc_proto);
1707 goto out; 1707 goto out;
1708 } 1708 }
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c
index 9486d8ee98b8..b52959fca5e6 100644
--- a/net/tipc/subscr.c
+++ b/net/tipc/subscr.c
@@ -488,7 +488,7 @@ int subscr_start(void)
488 return 0; 488 return 0;
489 489
490failed: 490failed:
491 err("Unable to create subscription service\n"); 491 err("Failed to create subscription service\n");
492 tipc_detach(topsrv.user_ref); 492 tipc_detach(topsrv.user_ref);
493 topsrv.user_ref = 0; 493 topsrv.user_ref = 0;
494 spin_unlock_bh(&topsrv.lock); 494 spin_unlock_bh(&topsrv.lock);