summaryrefslogtreecommitdiffstats
path: root/net/socket.c
diff options
context:
space:
mode:
authorYejune Deng <yejune.deng@gmail.com>2021-06-18 16:32:47 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-18 22:02:21 +0200
commit1f3c98eaddec857e16a7a1c6cd83317b3dc89438 (patch)
tree74976b9b15190f9824cc82353267f0ee82f432c4 /net/socket.c
parentMerge branch 'csock-seqpoacket-small-fixes' (diff)
downloadlinux-1f3c98eaddec857e16a7a1c6cd83317b3dc89438.tar.xz
linux-1f3c98eaddec857e16a7a1c6cd83317b3dc89438.zip
net: add pf_family_names[] for protocol family
Modify the pr_info content from int to char *, this looks more readable. Signed-off-by: Yejune Deng <yejune.deng@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c
index 27e3e7d53f8e..ff544cf50321 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -2988,7 +2988,7 @@ int sock_register(const struct net_proto_family *ops)
}
spin_unlock(&net_family_lock);
- pr_info("NET: Registered protocol family %d\n", ops->family);
+ pr_info("NET: Registered %s protocol family\n", pf_family_names[ops->family]);
return err;
}
EXPORT_SYMBOL(sock_register);