* - debug messages are not printed
*/
-#define err(fmt, arg...) printk(KERN_ERR "%s: " fmt "\n" , __FILE__ , ## arg)
-#define info(fmt, arg...) printk(KERN_INFO "%s: " fmt "\n" , __FILE__ , ## arg)
-#define warn(fmt, arg...) printk(KERN_WARNING "%s: " fmt "\n" , __FILE__ , ## arg)
+#define err(fmt, arg...) printk(KERN_ERR "TIPC: " fmt , ## arg)
+#define info(fmt, arg...) printk(KERN_INFO "TIPC: " fmt , ## arg)
+#define warn(fmt, arg...) printk(KERN_WARNING "TIPC: " fmt , ## arg)
#define dbg(fmt, arg...) do {} while (0)
#define msg_dbg(msg,txt) do {} while (0)
genl_unregister_family(&family);
family_registered = 0;
err:
- err("Failed to register netlink interface");
+ err("Failed to register netlink interface\n");
return -EFAULT;
}
res = proto_register(&tipc_proto, 1);
if (res) {
- err("Unable to register TIPC protocol type\n");
+ err("Failed to register TIPC protocol type\n");
goto out;
}
res = sock_register(&tipc_family_ops);
if (res) {
- err("Unable to register TIPC socket type\n");
+ err("Failed to register TIPC socket type\n");
proto_unregister(&tipc_proto);
goto out;
}
return 0;
failed:
- err("Unable to create subscription service\n");
+ err("Failed to create subscription service\n");
tipc_detach(topsrv.user_ref);
topsrv.user_ref = 0;
spin_unlock_bh(&topsrv.lock);