diff options
| author | 2010-06-29 18:10:04 +0000 | |
|---|---|---|
| committer | 2010-06-29 18:10:04 +0000 | |
| commit | 9353ff656da4e89834b8468f0593e3f2e4fae4bd (patch) | |
| tree | 66a443a934cdee3818cd293ca54a94400254b5a4 /usr.sbin/sasyncd/timer.c | |
| parent | Considerably simplify block rewind rules; no functional change intended. (diff) | |
| download | wireguard-openbsd-9353ff656da4e89834b8468f0593e3f2e4fae4bd.tar.xz wireguard-openbsd-9353ff656da4e89834b8468f0593e3f2e4fae4bd.zip | |
Having more than 2 log levels is silly. Use only 3 verbosity levels:
None (), Important (-v), All (-vv)
ok deraadt@
Diffstat (limited to 'usr.sbin/sasyncd/timer.c')
| -rw-r--r-- | usr.sbin/sasyncd/timer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/sasyncd/timer.c b/usr.sbin/sasyncd/timer.c index d4726f3dc42..86aaa3df271 100644 --- a/usr.sbin/sasyncd/timer.c +++ b/usr.sbin/sasyncd/timer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: timer.c,v 1.3 2006/06/02 20:31:48 moritz Exp $ */ +/* $OpenBSD: timer.c,v 1.4 2010/06/29 18:10:04 kjell Exp $ */ /* * Copyright (c) 2005 Håkan Olsson. All rights reserved. @@ -97,7 +97,7 @@ timer_run(void) for (e = TAILQ_FIRST(&events); e && timercmp(&now, &e->expire, >=); e = TAILQ_FIRST(&events)) { TAILQ_REMOVE(&events, e, next); - log_msg(6, "timer_run: event \"%s\"", + log_msg(2, "timer_run: event \"%s\"", e->name ? e->name : "<unknown>"); (*e->fun)(e->arg); if (e->name) @@ -128,7 +128,7 @@ timer_add(char *name, u_int32_t when, void (*function)(void *), void *arg) gettimeofday(&now, 0); timeradd(&now, &tmp, &new->expire); - log_msg(6, "timer_add: new event \"%s\" (expiring in %us)", + log_msg(2, "timer_add: new event \"%s\" (expiring in %us)", name ? name : "<unknown>", when); /* Insert the new event in the queue so it's always sorted. */ |
