提交 c5cc0c69 编写于 作者: H Helge Deller 提交者: Pablo Neira Ayuso

netfilter: ipvs: Use %pS printk format for direct addresses

The debug and error printk functions in ipvs uses wrongly the %pF instead of
the %pS printk format specifier for printing symbols for the address returned
by _builtin_return_address(0). Fix it for the ia64, ppc64 and parisc64
architectures.
Signed-off-by: NHelge Deller <deller@gmx.de>
Cc: Wensong Zhang <wensong@linux-vs.org>
Cc: netdev@vger.kernel.org
Cc: lvs-devel@vger.kernel.org
Cc: netfilter-devel@vger.kernel.org
Acked-by: NSimon Horman <horms@verge.net.au>
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 e8daf27c
...@@ -185,7 +185,7 @@ static inline int ip_vs_conn_hash(struct ip_vs_conn *cp) ...@@ -185,7 +185,7 @@ static inline int ip_vs_conn_hash(struct ip_vs_conn *cp)
hlist_add_head_rcu(&cp->c_list, &ip_vs_conn_tab[hash]); hlist_add_head_rcu(&cp->c_list, &ip_vs_conn_tab[hash]);
ret = 1; ret = 1;
} else { } else {
pr_err("%s(): request for already hashed, called from %pF\n", pr_err("%s(): request for already hashed, called from %pS\n",
__func__, __builtin_return_address(0)); __func__, __builtin_return_address(0));
ret = 0; ret = 0;
} }
......
...@@ -300,7 +300,7 @@ static int ip_vs_svc_hash(struct ip_vs_service *svc) ...@@ -300,7 +300,7 @@ static int ip_vs_svc_hash(struct ip_vs_service *svc)
unsigned int hash; unsigned int hash;
if (svc->flags & IP_VS_SVC_F_HASHED) { if (svc->flags & IP_VS_SVC_F_HASHED) {
pr_err("%s(): request for already hashed, called from %pF\n", pr_err("%s(): request for already hashed, called from %pS\n",
__func__, __builtin_return_address(0)); __func__, __builtin_return_address(0));
return 0; return 0;
} }
...@@ -334,7 +334,7 @@ static int ip_vs_svc_hash(struct ip_vs_service *svc) ...@@ -334,7 +334,7 @@ static int ip_vs_svc_hash(struct ip_vs_service *svc)
static int ip_vs_svc_unhash(struct ip_vs_service *svc) static int ip_vs_svc_unhash(struct ip_vs_service *svc)
{ {
if (!(svc->flags & IP_VS_SVC_F_HASHED)) { if (!(svc->flags & IP_VS_SVC_F_HASHED)) {
pr_err("%s(): request for unhash flagged, called from %pF\n", pr_err("%s(): request for unhash flagged, called from %pS\n",
__func__, __builtin_return_address(0)); __func__, __builtin_return_address(0));
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册