Browse code

- more timer DBG cleanups

Andrei Pelinescu-Onciul authored on 14/02/2006 18:04:17
Showing 1 changed files
... ...
@@ -111,21 +111,11 @@ static inline int _timer_dist_tl(struct timer_ln* tl, ticks_t delta)
111 111
 			LOG(L_WARN, "WARNING: timer: add_timeout: 0 expire timer added\n");
112 112
 			_timer_add_list(&timer_lst->expired, tl);
113 113
 		}else{
114
-			DBG("_timer_dist_tl: adding timer %p, delta %u,"
115
-					" expire %u @h0[%u]\n",
116
-				tl, (unsigned) delta, (unsigned) tl->expire,
117
-				(unsigned)(tl->expire & H0_MASK));
118 114
 			_timer_add_list( &timer_lst->h0[tl->expire & H0_MASK], tl);
119 115
 		}
120 116
 	}else if (delta<(H0_ENTRIES*H1_ENTRIES)){
121
-		DBG("_timer_dist_tl: adding timer %p, delta %u, expire %u @h1[%u]\n",
122
-				tl, (unsigned) delta, (unsigned) tl->expire,
123
-				(unsigned)((tl->expire & H1_H0_MASK)>>H0_BITS));
124 117
 		_timer_add_list(&timer_lst->h1[(tl->expire & H1_H0_MASK)>>H0_BITS],tl);
125 118
 	}else{
126
-		DBG("_timer_dist_tl: adding timer %p, delta %u, expire %u @h2[%u]\n",
127
-				tl, (unsigned) delta, (unsigned) tl->expire,
128
-				(unsigned)(tl->expire>>(H1_BITS+H0_BITS)));
129 119
 		_timer_add_list(&timer_lst->h2[tl->expire>>(H1_BITS+H0_BITS)], tl);
130 120
 	}
131 121
 	return 0;
... ...
@@ -150,8 +140,6 @@ static inline void timer_redist(ticks_t t, struct timer_head *h)
150 140
 	struct timer_ln* tl;
151 141
 	struct timer_ln* tmp;
152 142
 	
153
-	DBG("timer_redist: list %p, ticks %lu\n", h, (unsigned long) t);
154
-	
155 143
 	timer_foreach_safe(tl, tmp, h){
156 144
 		_timer_dist_tl(tl, tl->expire-t);
157 145
 	}
... ...
@@ -164,12 +152,8 @@ static inline void timer_run(ticks_t t)
164 152
 	/* trust the compiler for optimizing */
165 153
 	if ((t & H0_MASK)==0){              /*r1*/
166 154
 		if ((t & H1_H0_MASK)==0){        /*r2*/
167
-			DBG("timer_run: ticks %u, redist h2[%u]\n",
168
-							(unsigned ) t, (unsigned)( t>>(H0_BITS+H1_BITS)));
169 155
 			timer_redist(t, &timer_lst->h2[t>>(H0_BITS+H1_BITS)]);
170 156
 		}
171
-		DBG("timer_run: ticks %u, redist h1[%u]\n",
172
-						(unsigned ) t, (unsigned)((t & H1_H0_MASK)>>H0_BITS));
173 157
 		
174 158
 		timer_redist(t, &timer_lst->h1[(t & H1_H0_MASK)>>H0_BITS]);/*r2 >> H0*/
175 159
 	}