Skip to content

Commit a6348a7

Browse files
leitaokuba-moo
authored andcommitted
net/ipv6: Remove unnecessary pr_debug() logs
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 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 <[email protected]> Reviewed-by: David Ahern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent a2a7f98 commit a6348a7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

net/ipv6/ip6_fib.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -751,8 +751,6 @@ static struct fib6_node *fib6_add_1(struct net *net,
751751
int bit;
752752
__be32 dir = 0;
753753

754-
RT6_TRACE("fib6_add_1\n");
755-
756754
/* insert node in tree */
757755

758756
fn = root;
@@ -1905,8 +1903,6 @@ static void fib6_del_route(struct fib6_table *table, struct fib6_node *fn,
19051903
struct net *net = info->nl_net;
19061904
bool notify_del = false;
19071905

1908-
RT6_TRACE("fib6_del_route\n");
1909-
19101906
/* If the deleted route is the first in the node and it is not part of
19111907
* a multipath route, then we need to replace it with the next route
19121908
* in the node, if exists.

0 commit comments

Comments
 (0)