Преглед изворни кода

Move start/stop/expire debug messages to DBG2() level.

tags/v0.9.3
Michael Brown пре 18 година
родитељ
комит
8a268073a7
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6
    6
      src/net/retry.c

+ 6
- 6
src/net/retry.c Прегледај датотеку

@@ -69,8 +69,8 @@ void start_timer ( struct retry_timer *timer ) {
69 69
 	timer->start = currticks();
70 70
 	if ( timer->timeout < MIN_TIMEOUT )
71 71
 		timer->timeout = MIN_TIMEOUT;
72
-	DBG ( "Timer %p started at time %ld (expires at %ld)\n",
73
-	      timer, timer->start, ( timer->start + timer->timeout ) );
72
+	DBG2 ( "Timer %p started at time %ld (expires at %ld)\n",
73
+	       timer, timer->start, ( timer->start + timer->timeout ) );
74 74
 }
75 75
 
76 76
 /**
@@ -92,8 +92,8 @@ void stop_timer ( struct retry_timer *timer ) {
92 92
 	list_del ( &timer->list );
93 93
 	runtime = ( now - timer->start );
94 94
 	timer->start = 0;
95
-	DBG ( "Timer %p stopped at time %ld (ran for %ld)\n",
96
-	      timer, now, runtime );
95
+	DBG2 ( "Timer %p stopped at time %ld (ran for %ld)\n",
96
+	       timer, now, runtime );
97 97
 
98 98
 	/* Update timer.  Variables are:
99 99
 	 *
@@ -131,8 +131,8 @@ static void timer_expired ( struct retry_timer *timer ) {
131 131
 	int fail;
132 132
 
133 133
 	/* Stop timer without performing RTT calculations */
134
-	DBG ( "Timer %p stopped at time %ld on expiry\n",
135
-	      timer, currticks() );
134
+	DBG2 ( "Timer %p stopped at time %ld on expiry\n",
135
+	       timer, currticks() );
136 136
 	list_del ( &timer->list );
137 137
 	timer->start = 0;
138 138
 	timer->count++;

Loading…
Откажи
Сачувај