Pārlūkot izejas kodu

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

tags/v0.9.3
Michael Brown 18 gadus atpakaļ
vecāks
revīzija
8a268073a7
1 mainītis faili ar 6 papildinājumiem un 6 dzēšanām
  1. 6
    6
      src/net/retry.c

+ 6
- 6
src/net/retry.c Parādīt failu

@@ -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++;

Notiek ielāde…
Atcelt
Saglabāt