Browse Source

Kill off some warnings-problematic debug statements in ndp.c; the code

is non-functional anyway.
tags/v0.9.3
Michael Brown 17 years ago
parent
commit
798f7f6b8e
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      src/net/ndp.c

+ 2
- 4
src/net/ndp.c View File

@@ -80,8 +80,7 @@ add_ndp_entry ( struct net_device *netdev, struct in6_addr *in6,
80 80
 		memset ( ndp->ll_addr, 0, netdev->ll_protocol->ll_addr_len );
81 81
 	}
82 82
 	ndp->state = state;
83
-	DBG ( "New neighbour cache entry (%d): IP6 %s => %s %s\n",
84
-	      ( ndp - ndp_table ),
83
+	DBG ( "New neighbour cache entry: IP6 %s => %s %s\n",
85 84
 	      inet6_ntoa ( ndp->in6 ), netdev->ll_protocol->name,
86 85
 	      netdev->ll_protocol->ntoa ( ndp->ll_addr ) );
87 86
 }
@@ -118,8 +117,7 @@ int ndp_resolve ( struct net_device *netdev, struct in6_addr *dest,
118 117
 
119 118
 	/* Check if the entry was already created */
120 119
 	if ( ndp ) {
121
-		DBG ( "Awaiting neighbour advertisement (cache entry %d)\n",
122
-		      ( ndp - ndp_table ) );
120
+		DBG ( "Awaiting neighbour advertisement\n" );
123 121
 		/* For test */
124 122
 //		ndp->state = NDP_STATE_REACHABLE;
125 123
 //		memcpy ( ndp->ll_addr, netdev->ll_addr, 6 );

Loading…
Cancel
Save