Skip to content

Commit

Permalink
Kill off some warnings-problematic debug statements in ndp.c; the code
Browse files Browse the repository at this point in the history
is non-functional anyway.
  • Loading branch information
Michael Brown committed Dec 7, 2007
1 parent 6b0e147 commit 798f7f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/net/ndp.c
Expand Up @@ -80,8 +80,7 @@ add_ndp_entry ( struct net_device *netdev, struct in6_addr *in6,
memset ( ndp->ll_addr, 0, netdev->ll_protocol->ll_addr_len );
}
ndp->state = state;
DBG ( "New neighbour cache entry (%d): IP6 %s => %s %s\n",
( ndp - ndp_table ),
DBG ( "New neighbour cache entry: IP6 %s => %s %s\n",
inet6_ntoa ( ndp->in6 ), netdev->ll_protocol->name,
netdev->ll_protocol->ntoa ( ndp->ll_addr ) );
}
Expand Down Expand Up @@ -118,8 +117,7 @@ int ndp_resolve ( struct net_device *netdev, struct in6_addr *dest,

/* Check if the entry was already created */
if ( ndp ) {
DBG ( "Awaiting neighbour advertisement (cache entry %d)\n",
( ndp - ndp_table ) );
DBG ( "Awaiting neighbour advertisement\n" );
/* For test */
// ndp->state = NDP_STATE_REACHABLE;
// memcpy ( ndp->ll_addr, netdev->ll_addr, 6 );
Expand Down

0 comments on commit 798f7f6

Please sign in to comment.