diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-12-28 22:48:31 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-12-28 22:48:31 +0000 |
commit | d4bf85d43b8fa86385aabd4b945c497df23cbbfc (patch) | |
tree | 116bcc932598c168f7691d451dc80aa180966744 | |
parent | 4e66bfd7f9da480666e5aba0c783d765db43786d (diff) |
when panicing from timeout_add being < 0, print the value; ok miod
-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); |