Commit 977336cc authored by David S. Miller's avatar David S. Miller

[NET]: Print a KERN_INFO msg when protocol families are {un,}registered.

parent 616f6f9f
......@@ -1894,6 +1894,8 @@ int sock_register(struct net_proto_family *ops)
err = 0;
}
net_family_write_unlock();
printk(KERN_INFO "NET: Registered protocol family %d\n",
ops->family);
return err;
}
......@@ -1911,6 +1913,8 @@ int sock_unregister(int family)
net_family_write_lock();
net_families[family]=NULL;
net_family_write_unlock();
printk(KERN_INFO "NET: Unregistered protocol family %d\n",
family);
return 0;
}
......
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