diff options
author | 2004-12-28 22:48:30 +0000 | |
---|---|---|
committer | 2004-12-28 22:48:30 +0000 | |
commit | 9c0355c56021e2f367d35444b1259be9c2e53371 (patch) | |
tree | 2227fedac660233563fb2144b53fc4a255a98cec /sys/kern/kern_timeout.c | |
parent | remove signedness warnings; jfb ok (diff) | |
download | wireguard-openbsd-9c0355c56021e2f367d35444b1259be9c2e53371.tar.xz wireguard-openbsd-9c0355c56021e2f367d35444b1259be9c2e53371.zip |
when panicing from timeout_add being < 0, print the value; ok miod
Diffstat (limited to 'sys/kern/kern_timeout.c')
-rw-r--r-- | sys/kern/kern_timeout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index 02122d7e619..01ad715a983 100644 --- a/sys/kern/kern_timeout.c +++ b/sys/kern/kern_timeout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_timeout.c,v 1.21 2004/12/12 20:37:01 espie Exp $ */ +/* $OpenBSD: kern_timeout.c,v 1.22 2004/12/28 22:48:30 deraadt Exp $ */ /* * Copyright (c) 2001 Thomas Nordin <nordin@openbsd.org> * Copyright (c) 2000-2001 Artur Grabowski <art@openbsd.org> @@ -156,7 +156,7 @@ timeout_add(struct timeout *new, int to_ticks) if (!(new->to_flags & TIMEOUT_INITIALIZED)) panic("timeout_add: not initialized"); if (to_ticks < 0) - panic("timeout_add: to_ticks < 0"); + panic("timeout_add: to_ticks (%d) < 0", to_ticks); #endif mtx_enter(&timeout_mutex); |