Provide better debugging information in tcp_timer_activate() and

tcp_timer_active()

Differential Revision:	https://reviews.freebsd.org/D2179
Suggested by:		bz
Reviewed by:		jhb
Approved by:		jhb
This commit is contained in:
Julien Charbon 2015-04-02 14:43:07 +00:00
parent 7a742e3744
commit 033749179f

View File

@ -884,7 +884,7 @@ tcp_timer_activate(struct tcpcb *tp, int timer_type, u_int delta)
f_callout = tcp_timer_2msl; f_callout = tcp_timer_2msl;
break; break;
default: default:
panic("bad timer_type"); panic("tp %p bad timer_type %#x", tp, timer_type);
} }
if (delta == 0) { if (delta == 0) {
callout_stop(t_callout); callout_stop(t_callout);
@ -915,7 +915,7 @@ tcp_timer_active(struct tcpcb *tp, int timer_type)
t_callout = &tp->t_timers->tt_2msl; t_callout = &tp->t_timers->tt_2msl;
break; break;
default: default:
panic("bad timer_type"); panic("tp %p bad timer_type %#x", tp, timer_type);
} }
return callout_active(t_callout); return callout_active(t_callout);
} }