Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Apr 2015 14:43:07 +0000 (UTC)
From:      Julien Charbon <jch@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r280990 - head/sys/netinet
Message-ID:  <201504021443.t32Eh7NI007849@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jch
Date: Thu Apr  2 14:43:07 2015
New Revision: 280990
URL: https://svnweb.freebsd.org/changeset/base/280990

Log:
  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

Modified:
  head/sys/netinet/tcp_timer.c

Modified: head/sys/netinet/tcp_timer.c
==============================================================================
--- head/sys/netinet/tcp_timer.c	Thu Apr  2 14:22:59 2015	(r280989)
+++ head/sys/netinet/tcp_timer.c	Thu Apr  2 14:43:07 2015	(r280990)
@@ -884,7 +884,7 @@ tcp_timer_activate(struct tcpcb *tp, int
 			f_callout = tcp_timer_2msl;
 			break;
 		default:
-			panic("bad timer_type");
+			panic("tp %p bad timer_type %#x", tp, timer_type);
 		}
 	if (delta == 0) {
 		callout_stop(t_callout);
@@ -915,7 +915,7 @@ tcp_timer_active(struct tcpcb *tp, int t
 			t_callout = &tp->t_timers->tt_2msl;
 			break;
 		default:
-			panic("bad timer_type");
+			panic("tp %p bad timer_type %#x", tp, timer_type);
 		}
 	return callout_active(t_callout);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504021443.t32Eh7NI007849>