mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next 1/2] net/ipv6: Remove unnecessary pr_debug() logs
@ 2024-01-08 19:12 Breno Leitao
  2024-01-08 19:12 ` [PATCH net-next 2/2] net/ipv6: resolve warning in ip6_fib.c Breno Leitao
  2024-01-08 19:20 ` [PATCH net-next 1/2] net/ipv6: Remove unnecessary pr_debug() logs David Ahern
  0 siblings, 2 replies; 3+ messages in thread
From: Breno Leitao @ 2024-01-08 19:12 UTC (permalink / raw)
  To: dsahern, weiwan, kuba, David S. Miller, Eric Dumazet, Paolo Abeni
  Cc: leit, open list:NETWORKING [IPv4/IPv6], open list

In the ipv6 system, we have some logs basically dumping the name of the
function that is being called. This is not ideal, since ftrace give it
to us "for free". Moreover, checkpatch is not happy when touching that
code:

	WARNING: Unnecessary ftrace-like logging - prefer using ftrace

Remove debug functions that only print the current function name.

Signed-off-by: Breno Leitao <leitao@debian.org>
---
 net/ipv6/ip6_fib.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c
index 4fc2cae0d116..fb41bec6b4b5 100644
--- a/net/ipv6/ip6_fib.c
+++ b/net/ipv6/ip6_fib.c
@@ -751,8 +751,6 @@ static struct fib6_node *fib6_add_1(struct net *net,
 	int	bit;
 	__be32	dir = 0;
 
-	RT6_TRACE("fib6_add_1\n");
-
 	/* insert node in tree */
 
 	fn = root;
@@ -1905,8 +1903,6 @@ static void fib6_del_route(struct fib6_table *table, struct fib6_node *fn,
 	struct net *net = info->nl_net;
 	bool notify_del = false;
 
-	RT6_TRACE("fib6_del_route\n");
-
 	/* If the deleted route is the first in the node and it is not part of
 	 * a multipath route, then we need to replace it with the next route
 	 * in the node, if exists.
-- 
2.39.3


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-08 19:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-08 19:12 [PATCH net-next 1/2] net/ipv6: Remove unnecessary pr_debug() logs Breno Leitao
2024-01-08 19:12 ` [PATCH net-next 2/2] net/ipv6: resolve warning in ip6_fib.c Breno Leitao
2024-01-08 19:20 ` [PATCH net-next 1/2] net/ipv6: Remove unnecessary pr_debug() logs David Ahern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®